-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Pressing 'Enter' on repo settings modals hides the modal #25438
Comments
Maybe we should ditch our custom solution and should use the new dialog HTML Element. According to Can I Use, it is already supported by 92.86% of the Web Users. |
Yes, that would be preferred as we can then get rid of the fomantic modal module. |
It's caused by abuse of Fomantic Modal in old code. I think the new "form-fetch-action" could help and could be a clear solution. |
Will be fixed by Make buttons in a modal form have proper type #25446 (for most) |
Fix #25438 All non-"ok" buttons which do not have "type" should not submit the form, should not be triggered by "Enter". Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Giteabot <teabot@gitea.io>
Fix go-gitea#25438 All non-"ok" buttons which do not have "type" should not submit the form, should not be triggered by "Enter". Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Giteabot <teabot@gitea.io>
Backport #25446 by @wxiaoguang Fix #25438 All non-"ok" buttons which do not have "type" should not submit the form, should not be triggered by "Enter". Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Not fixed? |
The fix was reverted because it introduced even more problems :/ |
The complete fix: Make "cancel" buttons have proper type in modal forms #25618 |
Replace go-gitea#25446, fix go-gitea#25438 All "cancel" buttons which do not have "type" should not submit the form, should not be triggered by "Enter". This is a complete fix for all modal dialogs. The major change is "modules/aria/modal.js", "devtest" related code is for demo/test purpose. # Conflicts: # routers/web/devtest/devtest.go
Description
When trying to delete/transfer/archive a repo from its settings, entering the name and pressing enter, the modal is simply being hidden instead of deleting the repo.
Gitea Version
1.20-nightly
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
docker rootful
Database
None
The text was updated successfully, but these errors were encountered: