diff --git a/assets/js/app.js b/assets/js/app.js index 98e05fb..80157d3 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -221,13 +221,13 @@ Hooks.dragAndDropLocation = { layoutDOM.classList.toggle('create-layout'); layoutDOM.classList.toggle('create-layout-pure'); }); - + this.handleEvent('set_focus', ({ customClasses }) => { - const formDOM = document.querySelector(`.${customClasses}`) - if (formDOM) { - formDOM.focus() - formDOM.setSelectionRange(-1, -1); - } + const formsDOM = document.querySelectorAll(`.${customClasses}`); + formsDOM.forEach((item) => { + item.focus(); + item.setSelectionRange(-1, -1); + }); }); }, }; diff --git a/deployment/templates/test1.html b/deployment/templates/test1.html index ff0ace2..0376456 100644 --- a/deployment/templates/test1.html +++ b/deployment/templates/test1.html @@ -1,421 +1,22 @@ -
+
-
Back To/History
+
Back To/History
Main Section
Settings
- - -
-
- - - - - - - - - - -
- -
- -
-
- -
-