Skip to content

Commit 8357e6c

Browse files
GambitGambit
authored andcommitted
fix four range control initial position
1 parent 2fa16b4 commit 8357e6c

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ const FourRangeControl = memo( props => {
145145
propsToPass.initialPosition = ''
146146
propsToPass.placeholder = props.placeholder
147147
}
148+
} else {
149+
propsToPass.initialPosition = props.initialPosition !== '' ? props.initialPosition : props.placeholder
148150
}
149151

150152
const deviceType = useDeviceType()

0 commit comments

Comments
 (0)