modal: prevent setValue calls before popup is created
This commit is contained in:
parent
e18bd058e3
commit
4a1837aaf8
2 changed files with 3 additions and 0 deletions
|
|
@ -115,6 +115,8 @@ module.exports = class Modal extends Panel {
|
|||
|
||||
setValue(v, options={}) {
|
||||
|
||||
if (this.init === undefined) return
|
||||
|
||||
this.value = v ? 1 : 0
|
||||
|
||||
if (!this.init && this.value) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue