mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-02 06:51:40 +00:00
Disable "enter" hotkeys only on tag input element
We are still able to use enter to submit the form on anyother input.The tag input creates a new tag when enter is pressed
This commit is contained in:
@@ -23,11 +23,6 @@ export default class BulkFormController extends Controller {
|
||||
recordElements = {};
|
||||
|
||||
connect() {
|
||||
// disable form submit via enter key, so we can use enter key to create new product tags
|
||||
hotkeys("enter", function (event, handler) {
|
||||
event.preventDefault();
|
||||
});
|
||||
|
||||
this.submitting = false;
|
||||
this.form = this.element;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user