diff --git a/packages/components/src/range-control/utils.ts b/packages/components/src/range-control/utils.ts index 78657f9e32e7a..39cdc7b9f6f12 100644 --- a/packages/components/src/range-control/utils.ts +++ b/packages/components/src/range-control/utils.ts @@ -50,7 +50,10 @@ export function useControlledRangeValue( const { min, max, value: valueProp, initial } = settings; const [ state, setInternalState ] = useControlledState( floatClamp( valueProp, min, max ), - { initial, fallback: null } + { + initial: floatClamp( initial ?? null, min, max ), + fallback: null, + } ); const setState = useCallback(