If the new_button option is supplied to the multiselect form widget and the template contains any inputs, pressing Enter while focused an input would actually activate the new button. The browser sets it as the default submit button for the form since it is above the "Save changes" one.
The solution is to have a type="button" attribute.
If the
new_button
option is supplied to themultiselect
form widget and the template contains any inputs, pressing Enter while focused an input would actually activate the new button. The browser sets it as the default submit button for the form since it is above the "Save changes" one.The solution is to have a
type="button"
attribute.