You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57
Current behavior
given a regular html form with a MultiSelect component from prime:
but because the type="button" <button type="button"... is missing, it will be type=submit by default.
the form will use the first "submit" button onEnter. hence, the submitbutton at the end of the for wont be executed.
if prime does not relay on the close button in the MultiSelect beeing "type=submit". is sggest you add "type=button"
Browser:
Chrome 79
Language:
ES6
The text was updated successfully, but these errors were encountered:
manstir
changed the title
MultiSelect close button type not defined - Can lead to preventing a <from> from submitting
MultiSelect close button type not defined - Can lead to preventing a <form> from submitting
Jan 6, 2020
I'm submitting a ... (check one with "x")
Current behavior
given a regular html form with a MultiSelect component from prime:
if the cursor is in the "regularInput" field, the "Enter" Key does not submit the form. "handleSubmit" won't be called.
Issue: the MultiSelect-Header contains a close button: <button... />
primereact/src/components/multiselect/MultiSelectHeader.js
Line 72 in 3bc8ce8
but because the type="button" <button type="button"... is missing, it will be type=submit by default.
the form will use the first "submit" button onEnter. hence, the submitbutton at the end of the for wont be executed.
if prime does not relay on the close button in the MultiSelect beeing "type=submit". is sggest you add "type=button"
Browser:
Chrome 79
Language:
ES6
The text was updated successfully, but these errors were encountered: