Fix changed events for widget nodes

Need an internal delay to ensure graph has finished processing
This commit is contained in:
space-nuko
2023-05-08 02:52:04 -05:00
parent 2d8b121fb3
commit e6172b0648
5 changed files with 61 additions and 32 deletions

View File

@@ -32,8 +32,7 @@
}
function onSelect(e: CustomEvent<SelectData>) {
$nodeValue = e.detail.value
node.setValue($nodeValue)
node.setValue(e.detail.value)
node.index = e.detail.index as number
navigator.vibrate(20)
}
@@ -50,6 +49,7 @@
choices={node.properties.choices}
disabled={isDisabled(widget)}
label={widget.attrs.title}
show_label={widget.attrs.title && widget.attrs.title !== ""}
value={$nodeValue}
on:select={onSelect}
/>