modal: remove visibility optimization (hard to track edge effect)

This commit is contained in:
bordun 2021-03-01 09:29:17 +01:00
parent c7a98415aa
commit b5446c08ac
4 changed files with 7 additions and 22 deletions

View file

@ -1065,13 +1065,7 @@ class Widget extends EventEmitter {
isVisible() {
return this.getProp('visible') && this.parent.childrenVisible()
}
childrenVisible() {
return this.isVisible()
return this.getProp('visible') && this.parent.isVisible()
}

View file

@ -126,13 +126,6 @@ class Modal extends Panel {
}
childrenVisible() {
return this.init && this.value && this.isVisible()
}
setValue(v, options={}) {
if (this.init === undefined) return