modal: prevent setValue calls before popup is created

This commit is contained in:
jean-emmanuel 2018-03-11 12:53:49 +01:00
parent 837914de6d
commit 00e0b7870f
2 changed files with 3 additions and 0 deletions

View file

@ -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

View file

@ -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) {