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

@ -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})