scripting: setFocus not working on iOS

This commit is contained in:
jean-emmanuel 2025-04-17 09:07:59 +02:00
parent bc52244c0b
commit 4c9eecd0af
3 changed files with 10 additions and 3 deletions

View file

@ -445,9 +445,7 @@ class ScriptVm extends Vm {
var widgets = this.resolveId(id)
if (widgets.length) {
setTimeout(()=>{
if (widgets[0].focus) widgets[0].focus()
})
if (widgets[0].focus) widgets[0].focus()
}
}