modal: display issue when a modal receives the same value mutliple times

This commit is contained in:
bordun 2022-06-01 11:59:02 +02:00
parent 275ea3c14b
commit 34602bc45e
2 changed files with 8 additions and 1 deletions

View file

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

View file

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