Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: discard changes and unnecessary scroll in Modules form #3048

Merged
merged 4 commits into from
Jul 10, 2024

Conversation

OliwiaGowor
Copy link
Contributor

Description

Changes proposed in this pull request:

  • fixed Modules form height, that was causing unnecessary scroll
  • fixed discard changes not working for Modules edit

Related issue(s)

@kyma-bot kyma-bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 8, 2024
@kyma-bot
Copy link
Contributor

kyma-bot commented Jul 8, 2024

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@kyma-bot kyma-bot added cla: yes Indicates the PR's author has signed the CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 8, 2024
@OliwiaGowor OliwiaGowor marked this pull request as ready for review July 8, 2024 09:40
@kyma-bot kyma-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 8, 2024
@OliwiaGowor OliwiaGowor linked an issue Jul 8, 2024 that may be closed by this pull request
3 tasks
dbadura
dbadura previously approved these changes Jul 9, 2024
@kyma-bot kyma-bot added the lgtm Looks good to me! label Jul 9, 2024
@mrCherry97 mrCherry97 self-assigned this Jul 10, 2024
@@ -94,7 +94,7 @@ export function ResourceForm({
const [editorError, setEditorError] = useState(null);

useEffect(() => {
if (leavingForm) {
if (leavingForm && formElementRef.current?.clientWidth > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add comment to describe why it is here

@kyma-bot kyma-bot removed the lgtm Looks good to me! label Jul 10, 2024
@kyma-bot kyma-bot added the lgtm Looks good to me! label Jul 10, 2024
@kyma-bot kyma-bot merged commit 3561fa4 into kyma-project:main Jul 10, 2024
11 checks passed
@OliwiaGowor OliwiaGowor deleted the modules-form-fixes branch July 22, 2024 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Indicates the PR's author has signed the CLA. lgtm Looks good to me! size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Discard changes and unnecessary scroll in Modules form
4 participants