widgets: prevent value update event from interfering with a container creating its children

This commit is contained in:
jean-emmanuel 2024-01-17 15:40:57 +01:00
parent 0d66f2b8a8
commit 3a5fdf17c7
2 changed files with 6 additions and 1 deletions

View file

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

View file

@ -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(()=>{