modal: regression on android that prevents focusing input widgets in modals

This commit is contained in:
jean-emmanuel 2022-02-10 09:59:46 +01:00
parent 06f2c1b0c8
commit 24019c7203
2 changed files with 2 additions and 1 deletions

View file

@ -5,6 +5,7 @@
- bug fixes
- inspector: script editor: cursor alignment issue in indented lines
- clone: prevent freeze and print an error when attempting to create a circular clone
- modal: regression on android that prevents focusing input widgets in modals
## 1.14.5

View file

@ -105,8 +105,8 @@ class Modal extends Panel {
} else {
this.on('fast-click',(e)=>{
if (e.capturedByEditor === true) return
e.detail.preventOriginalEvent = true
if (e.target === this.toggle) {
e.detail.preventOriginalEvent = true
this.setValue(1, {sync:true, send:true})
}
}, {element: this.container})