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
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
## 1.16.4
|
||||
|
||||
- bug fixes
|
||||
- modal: display issue when a modal receives the same value mutliple times
|
||||
|
||||
- misc
|
||||
- windows: allow accessing other drives than the default one (list drives when the file browser reaches the filesystem's root)
|
||||
|
||||
|
|
|
|||
|
|
@ -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