diff --git a/editor/src/components/inspector/controls/slider-control.tsx b/editor/src/components/inspector/controls/slider-control.tsx index e6020acffaa2..df5196925d41 100644 --- a/editor/src/components/inspector/controls/slider-control.tsx +++ b/editor/src/components/inspector/controls/slider-control.tsx @@ -54,7 +54,7 @@ export class SliderControl extends React.Component { disabled={!this.props.controlStyles.interactive} value={this.props.value} onChange={this.props.onTransientSubmitValue} - onAfterChange={this.props.onForcedSubmitValue} + onAfterChange={this.props.onForcedSubmitValue ?? this.props.onSubmitValue} min={controlOptions.minimum} max={controlOptions.maximum} step={controlOptions.stepSize} diff --git a/editor/src/components/inspector/sections/layout-section/flex-container-subsection/flex-container-controls.tsx b/editor/src/components/inspector/sections/layout-section/flex-container-subsection/flex-container-controls.tsx index 01f00e02ca61..3f46d67fe1e9 100644 --- a/editor/src/components/inspector/sections/layout-section/flex-container-subsection/flex-container-controls.tsx +++ b/editor/src/components/inspector/sections/layout-section/flex-container-subsection/flex-container-controls.tsx @@ -258,6 +258,7 @@ export const FlexGapControl = betterReactMemo('FlexGapControl', (props: FlexGapC } as SliderControlOptions } onSubmitValue={props.onSubmitValue} + onTransientSubmitValue={props.onTransientSubmitValue} controlStatus={props.controlStatus} controlStyles={props.controlStyles} />