modal: prevent setValue calls before popup is created

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

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