Browse Source

Resolve #3092

Don't set a widget value if it hasn't changed, to avoid triggering DOMWidget set callback
pull/3093/head
chrisgoringe 8 months ago committed by GitHub
parent
commit
df66d632fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      web/extensions/core/groupNode.js

2
web/extensions/core/groupNode.js

@ -1029,7 +1029,7 @@ export class GroupNodeHandler {
}
const widget = innerNode.widgets?.find((w) => w.name === old.inputName);
if (widget) {
if (widget && widget.value!=newValue) { // avoid DOMWidget callbacks if no change
widget.value = newValue;
}
}

Loading…
Cancel
Save