-
Notifications
You must be signed in to change notification settings - Fork 25
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
editor: prevent the enter key to submit the form #1772
Conversation
5b15ce6
to
3b6ed4d
Compare
import 'bootstrap'; | ||
import './tooltip'; | ||
import './toast'; | ||
import './login'; | ||
import './toggle'; | ||
import './ills_request'; | ||
|
||
|
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.
carriage return could be removed ?
3b6ed4d
to
30d9085
Compare
It works well for all the cases mentioned in #1421. One doubt (not blocking): in the patron editor, the barcode field (where the enter behaviour is blocked) is required; it is impossible to save a patron without barcode, ok. But the field never appears with the red error message as a required field (see screenshot below). |
* Prevents the enter key to submit the form in some fields that may be filled though a scanning device. * Closes rero#1421. Co-Authored-by: Johnny Mariéthoz <johnny.mariethoz@rero.ch>
30d9085
to
48ea41f
Compare
I force the patron information to be required, but it seems it is not enough. I was able to reproduce this in ngx-formly and thus an issue has been open in this project: ngx-formly/ngx-formly#2750 |
filled though a scanning device.
Co-Authored-by: Johnny Mariéthoz johnny.mariethoz@rero.ch
Why are you opening this PR?
Dependencies
My PR depends on the following
rero-ils-ui
's PR(s):How to test?
Code review check list