Semantic-ui: Turn off automatic [enter] key form submission for a field?

Created on 30 Nov 2015  路  2Comments  路  Source: Semantic-Org/Semantic-UI

The documentation states:

Built-in Events
Form will automatically attach events to specially labeled form fields

Fields will blur on escape key press
Fields will submit form on enter
Submit events will be attached to click on any element inside the form with class submit
Reset events will be attached to click on any element inside the form with class reset
Clear events will be attached to click on any element inside the form with class clear

Is there a way i could disable submission of form on enter, for a particular field or all fields? I think there are a lot of use cases for this, for example i am using a google maps autocomplete which i also validate with semantic ui form validator but i don't want it to submit the form when the user presses enter. Because that is also the key for selecting the option from the drop down.

Most helpful comment

got it: setting "keyboardShortcuts".
Thanks.

All 2 comments

got it: setting "keyboardShortcuts".
Thanks.

Hi how to set this in form?
Thanks already found it in legacy page.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JakePrasad picture JakePrasad  路  146Comments

TypicalFooBar picture TypicalFooBar  路  87Comments

chrisandchris picture chrisandchris  路  58Comments

simoncarbajal picture simoncarbajal  路  41Comments

nestorvanz picture nestorvanz  路  38Comments