Hello everyone I ´m newbie in Node Red , I try to set autofocus in text_ui in dashboard, I was reading this forum: UI Text Input Focus - #3 by coffeegoat but isn´t working maybe I don´t understand how do it, I attached some screenshoots of my configuration.
In your code you are trying to target an element with id ControlCode
but If you open your browser's developers tools and inspect that input element's id,
ControlCode
is not used but a random name 'input_0' 'input_1'
try to target it some other way .. possibly by its html tag type
If its only one input you have on the page then try
setTimeout( () => { document.querySelector('input').focus() }, 200)
Thank you so much
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.