diff --git a/CHANGELOG.md b/CHANGELOG.md index 44e62ba5..f1aad18f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/client/widgets/containers/modal.js b/src/client/widgets/containers/modal.js index 6951d1a3..d6c27735 100644 --- a/src/client/widgets/containers/modal.js +++ b/src/client/widgets/containers/modal.js @@ -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)