Skip to content

Commit 9bd6a27

Browse files
committed
fix: remove placeholder for custom css in number input
1 parent 825b58f commit 9bd6a27

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/advanced-range-control/range-control.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@ const StackableRangeControl = memo( props => {
144144
placeholderValue = initialPosition
145145
}
146146

147+
// Remove placeholder if it's a custom CSS
148+
if ( typeof placeholderValue === 'string' && placeholderValue.startsWith( 'var' ) ) {
149+
placeholderValue = ''
150+
}
151+
147152
return <div
148153
className={ classNames }
149154
style={ { '--ugb-advanced-range-control--width': percentageValue } }

0 commit comments

Comments
 (0)