-
Notifications
You must be signed in to change notification settings - Fork 327
[WIP] Fix: Escape closes Settings dialog if login dialog open #3996 #4299
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: github-actions <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, pressing escape closes both the user and settings dialogs.
Would it be possible to have escape close the user dialog, then close settings, to bring this in line with stacked dialogs elsewhere in the app?
Currently from what i have checked with prime vue dialog doesn't have the option to configure that way. |
Co-authored-by: webfiltered <[email protected]>
Co-authored-by: webfiltered <[email protected]>
Co-authored-by: webfiltered <[email protected]>
…rg#4327) Co-authored-by: github-actions <[email protected]>
Co-authored-by: Claude <[email protected]>
Co-authored-by: webfiltered <[email protected]>
Co-authored-by: webfiltered <[email protected]>
In the dialogStore or dialogService, we can expose a function to close the "highest" dialog, while respecting the ranking system, then add the esc keyhandler to all dialogs that have close on escape prop enabled currently, then remove the close on escape prop. What do you think? |
…-Org#4340) Co-authored-by: christian-byrne <[email protected]>
Sure, i think that's the way to go. |
Co-authored-by: bymyself <[email protected]>
…y-Org#4213) Co-authored-by: Huang Yun Qi <[email protected]>
…mfyUI_frontend into fix/dialog-close
@webfiltered I'll close this MR. Please continue the review on the below MR, I had some rebase issues with current branch. |
Fix for: #3996
Problem:
The ESC button closes the dialog opened below rather than top.
Root Cause:
Since there is not close button configured on the login modal, but on the settings modal it have close button configuration.
Prime vue dialog takes only the one first one hence closing that dialog only.
primefaces/primevue#5138
Solution:
Current temporary solution is simply to add close button to Login modal.
Other solutions:
CloseOnEsc in the DialogStore config will always be kept false and a function can be written in the KeyBindingService to handle close on esc by closing only if the top most dialog has closable set to true
┆Issue is synchronized with this Notion page by Unito