Skip to content

modal.js: Do not wobble if ESC has been handled otherwise#5512

Merged
nilmerg merged 1 commit into
mainfrom
fix/modal-wobbles-even-though-default-is-prevented
May 21, 2026
Merged

modal.js: Do not wobble if ESC has been handled otherwise#5512
nilmerg merged 1 commit into
mainfrom
fix/modal-wobbles-even-though-default-is-prevented

Conversation

@nilmerg

@nilmerg nilmerg commented May 21, 2026

Copy link
Copy Markdown
Member

To reproduce the prior behavior, open a search editor, request e.g. column suggestions and push ESC.

prior: The modal wobbles
now: Nothing happens

@nilmerg nilmerg requested a review from sukhwinder33445 May 21, 2026 12:56
@nilmerg nilmerg self-assigned this May 21, 2026
@cla-bot cla-bot Bot added the cla/signed label May 21, 2026
@nilmerg nilmerg marked this pull request as ready for review May 21, 2026 12:56

@sukhwinder33445 sukhwinder33445 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This works fine.
I noticed when adding new fields to SearchEditor (without filling them in) and pressing Escape, the modal closes because no input change is detected.
Shouldn't new empty OR deleted fields also count as unsaved changes?
On the other hand, the user may also intentionally want to exit the modal and discard their changes, so the current behavoir is fine.

@nilmerg

nilmerg commented May 21, 2026

Copy link
Copy Markdown
Member Author

adding empty ones isn't a worthy change in my eyes, removing a condition on the other hand is so you have a point here. But this change is about something else ;)

@nilmerg nilmerg merged commit 21ef590 into main May 21, 2026
13 checks passed
@nilmerg nilmerg deleted the fix/modal-wobbles-even-though-default-is-prevented branch May 21, 2026 15:03
@lippserd lippserd added this to the 2.14.0 milestone Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants