Skip to content

Commit 03a6dae

Browse files
committed
fix: check for undefined, not if false since 0 is valid for four range
1 parent 8618566 commit 03a6dae

File tree

1 file changed

+1
-0
lines changed
  • src/components/four-range-control

1 file changed

+1
-0
lines changed

src/components/four-range-control/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ const FourRangeControl = memo( props => {
381381
}
382382
return _value === initialValue && ( _unit === '' || _unit === unit )
383383
} )
384+
rangeValue = rangeValue === -1 ? '' : rangeValue
384385
rangeOnChange = ( value, property = 'value' ) => {
385386
if ( value === '' ) {
386387
return initialOnChange( value )

0 commit comments

Comments
 (0)