modal: remove visibility optimization (hard to track edge effect)
This commit is contained in:
parent
c7a98415aa
commit
b5446c08ac
4 changed files with 7 additions and 22 deletions
|
|
@ -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()
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -126,13 +126,6 @@ class Modal extends Panel {
|
|||
|
||||
}
|
||||
|
||||
|
||||
childrenVisible() {
|
||||
|
||||
return this.init && this.value && this.isVisible()
|
||||
|
||||
}
|
||||
|
||||
setValue(v, options={}) {
|
||||
|
||||
if (this.init === undefined) return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue