Skip to content

Commit

Permalink
Layout Editor: Prevent toolbox Enter key form submit (#2803)
Browse files Browse the repository at this point in the history
  • Loading branch information
maurofmferrao authored Nov 18, 2024
1 parent 9050946 commit 3ebf136
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ui/src/editor-core/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1309,6 +1309,11 @@ Toolbar.prototype.loadContent = function(
// Create content
this.createContent(menu, forceReload);

// Prevent default form submit
this.DOMObject.find('#content-' + menu + ' form').submit(function(e) {
e.preventDefault();
});

// Save user preferences
(savePrefs) && this.savePrefs();
};
Expand Down

0 comments on commit 3ebf136

Please sign in to comment.