widgets: solve multi-value-dependency pattern resolution using a single queue instead of timeouts

This commit is contained in:
jean-emmanuel 2024-02-13 17:38:45 +01:00
parent e2215b865a
commit 8b92400c1e
5 changed files with 41 additions and 26 deletions

View file

@ -43,6 +43,8 @@ var Parser = class Parser {
var props = data
widgetManager.valueChangeLock()
// Set default widget type
props.type = tab ? 'tab' : props.type || 'fader'
@ -107,6 +109,8 @@ var Parser = class Parser {
parentNode.appendChild(widget.container)
widget.mounted = true
widgetManager.valueChangeUnlock()
// Editor needs to get the container object
return widget