-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
added key interception to prevent form submission on enter key #10617
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
Conversation
Using more specific selectors to prevent event bubbling Added explicit return false to ensure event propagation stops Moved the Enter key handling before the repeat initialization
@cdrini really sorry for the wait but I just couldn't get this up. And the force push was accidental 😓 . |
@cdrini @mekarpeles hello! Is there anything else this PR requires? |
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.
Awesome, thank you @techy4shri ! Apologies for the long delay on this one. I tested on testing, and with the added changes, works like a charm!
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #10617 +/- ##
==========================================
- Coverage 17.27% 17.10% -0.18%
==========================================
Files 87 91 +4
Lines 4845 5000 +155
Branches 860 870 +10
==========================================
+ Hits 837 855 +18
- Misses 3477 3603 +126
- Partials 531 542 +11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Closes #10401
Technical
Modified
initClassificationValidation()
inedit.js
:preventDefault()
to stop form submission on Enterrepeat('add')
call to trigger classification additionfalse
to prevent event bubblingTesting
Input is added as new classification
Page does not save/reload
Behavior matches ID Numbers field
Screenshot
Stakeholders
@cdrini