scripting: setFocus not working on iOS
This commit is contained in:
parent
bc52244c0b
commit
4c9eecd0af
3 changed files with 10 additions and 3 deletions
|
|
@ -1,5 +1,11 @@
|
|||
# Changelog
|
||||
|
||||
|
||||
## 1.29.1
|
||||
|
||||
- bug fixes
|
||||
- scripting: `setFocus` not working on iOS
|
||||
|
||||
## 1.29.0
|
||||
|
||||
- bug fixes
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -20,4 +20,7 @@ select, input, textarea {
|
|||
-webkit-appearance:none;
|
||||
-moz-appearance:none;
|
||||
appearance:none;
|
||||
-webkit-user-select: auto;
|
||||
-moz-user-select: auto;
|
||||
user-select: auto;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue