From 3a5fdf17c7d493b90a57546702ac4ef4af0cfc0a Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Wed, 17 Jan 2024 15:40:57 +0100 Subject: [PATCH] widgets: prevent value update event from interfering with a container creating its children --- CHANGELOG.md | 5 +++++ src/client/widgets/common/widget.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d92e6274..79e65b1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## next + +- bug fixes + - rare issue that made the last widget(s) in a container disappear when other widgets in the same container had a specific property dependency pattern + ## 1.25.6 - bug fixes diff --git a/src/client/widgets/common/widget.js b/src/client/widgets/common/widget.js index 57e1a9f5..eff09c00 100644 --- a/src/client/widgets/common/widget.js +++ b/src/client/widgets/common/widget.js @@ -491,7 +491,7 @@ class Widget extends EventEmitter { if (!this.linkedValueChangedCallback && Object.keys(this.linkedPropsValue).length) { this.linkedValueChangedCallback = (e)=>{ - if (this.isValueChanging && e.widget !== this) { + if (!this.parent.mounted || this.isValueChanging && e.widget !== this) { clearTimeout(this.valueChangingTimeout) this.valueChangingQueue[e.widget.hash] = e this.valueChangingTimeout = setTimeout(()=>{