Skip to content

Commit

Permalink
[core][Slider] Ref immutable consistency (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored Apr 12, 2024
1 parent cee26f8 commit 2b2836f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mui-base/src/useSlider/useSlider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export function useSlider(parameters: UseSliderParameters): UseSliderReturnValue
} = useIsFocusVisible();
const [focusedThumbIndex, setFocusedThumbIndex] = React.useState(-1);

const sliderRef = React.useRef<HTMLSpanElement>();
const sliderRef = React.useRef<HTMLSpanElement>(null);
const handleFocusRef = useForkRef(focusVisibleRef, sliderRef);
const handleRef = useForkRef(ref, handleFocusRef);

Expand Down

0 comments on commit 2b2836f

Please sign in to comment.