Skip to content

Commit

Permalink
fix: slider: fixes slider onresize event hang in react 16 (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkilgore-eightfold authored Jul 26, 2022
1 parent e082a3d commit a03d14f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Slider/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export const Slider: FC<SliderProps> = ({
}, [values]);

return (
<ResizeObserver onResize={() => updateLayout()}>
<ResizeObserver onResize={updateLayout}>
<div
className={mergeClasses(styles.sliderContainer, {
[styles.sliderDisabled]: disabled,
Expand Down

0 comments on commit a03d14f

Please sign in to comment.