Skip to content

Commit 81e0597

Browse files
authored
fix (preset values): remove placehoder when mark mode (#3515)
1 parent 4173e70 commit 81e0597

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ const AdvancedRangeControl = props => {
184184
// Other necessary props for steps.
185185
propsToPass.withInputField = false
186186
controlProps.units = false
187+
propsToPass.placeholder = ''
187188
} else {
188189
propsToPass.marks = undefined
189190
}

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,6 @@ 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-
152147
return <div
153148
className={ classNames }
154149
style={ { '--ugb-advanced-range-control--width': percentageValue } }

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ const FourRangeControl = memo( props => {
355355

356356
// Other necessary props for steps.
357357
newProps.withInputField = false
358+
propsToPass.placeholder = ''
358359
} else {
359360
newProps.marks = undefined
360361
}

0 commit comments

Comments
 (0)