Skip to content

Commit ab0f0b9

Browse files
committed
move slider className to top of component
1 parent 043cb5a commit ab0f0b9

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

components/dash-core-components/src/fragments/RangeSlider.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,12 @@ export default function RangeSlider(props: RangeSliderProps) {
193193
}
194194
};
195195

196+
const classNames = ['dash-slider-container', className].filter(Boolean);
197+
196198
return (
197199
<LoadingElement>
198200
{loadingProps => (
199-
<div
200-
id={id}
201-
className="dash-slider-container"
202-
{...loadingProps}
203-
>
201+
<div id={id} className={classNames.join(' ')} {...loadingProps}>
204202
{showInputs && value.length === 2 && !vertical && (
205203
<input
206204
type="number"
@@ -341,7 +339,7 @@ export default function RangeSlider(props: RangeSliderProps) {
341339
ref={sliderRef}
342340
className={`dash-slider-root ${
343341
renderedMarks ? 'has-marks' : ''
344-
} ${className || ''}`.trim()}
342+
}`.trim()}
345343
style={{
346344
...(vertical && {
347345
height: `${verticalHeight}px`,

0 commit comments

Comments
 (0)