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
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
- bug fixes
|
||||
- strip: nested strips were inheriting their parent's `spacing`
|
||||
- modal: prevent error when retrieving a child's property
|
||||
|
||||
## 0.26.3
|
||||
|
||||
|
|
|
|||
|
|
@ -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