modal: fix visibility check
This commit is contained in:
parent
707303252b
commit
678fcdd56b
1 changed files with 2 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ class Modal extends Panel {
|
|||
|
||||
isVisible() {
|
||||
|
||||
return this.value && super.isVisible()
|
||||
return this.init && this.value && super.isVisible()
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -149,6 +149,7 @@ class Modal extends Panel {
|
|||
|
||||
if (this.init) this.fixParents()
|
||||
|
||||
this.setVisibility()
|
||||
if (this.value) {
|
||||
resize.check(this.widget, true)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue