OpenBuildings / jam-tart

Jam Admin Builder
BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

Use button[type=button] in multiselect #6

Closed hkdobrev closed 10 years ago

hkdobrev commented 10 years ago

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.