diff --git a/resources/modules/editor/src/js/components/widgets/InputTextCommonWidget.js b/resources/modules/editor/src/js/components/widgets/InputTextCommonWidget.js index b3fd8320d..cdcf828f1 100644 --- a/resources/modules/editor/src/js/components/widgets/InputTextCommonWidget.js +++ b/resources/modules/editor/src/js/components/widgets/InputTextCommonWidget.js @@ -62,12 +62,13 @@ class InputTextCommonWidget extends Component { * @param {{}} e */ handleEnter = e => { + if (!e.target.hasAttribute('data-enter')) return; if (e.keyCode === 13) { e.preventDefault(); const inputs = Array.from(document.querySelectorAll("input[data-enter='enabled'],select")); const index = inputs.indexOf(e.target); if (index === undefined) return; - if (!e.target.hasAttribute('data-enter')) return; + inputs[index + 1] && inputs[index + 1].focus(); const { create_allowed,