diff --git a/packages/xod-client/src/editor/components/inspectorWidgets/Widget.jsx b/packages/xod-client/src/editor/components/inspectorWidgets/Widget.jsx index 340376df..6a7cfc7e 100644 --- a/packages/xod-client/src/editor/components/inspectorWidgets/Widget.jsx +++ b/packages/xod-client/src/editor/components/inspectorWidgets/Widget.jsx @@ -59,10 +59,9 @@ class Widget extends React.Component { } } - updateValue(value) { - const commitCallback = this.props.commitOnChange - ? this.commit.bind(this) - : noop; + updateValue(value, forceCommit = false) { + const commitCallback = + this.props.commitOnChange || forceCommit ? this.commit.bind(this) : noop; this.setState({ value }, commitCallback); }