modal: display issue when a modal receives the same value mutliple times
This commit is contained in:
parent
275ea3c14b
commit
34602bc45e
2 changed files with 8 additions and 1 deletions
|
|
@ -144,7 +144,11 @@ class Modal extends Panel {
|
|||
|
||||
if (this.init === undefined) return
|
||||
|
||||
this.value = v ? 1 : 0
|
||||
var val = v ? 1 : 0
|
||||
|
||||
if (val === this.value) return
|
||||
|
||||
this.value = val
|
||||
|
||||
if (!this.init && this.value) {
|
||||
this.popupContent.appendChild(this.widget)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue