Skip to content

Commit ad4681f

Browse files
authored
fix: ColorWheel track click (#8049)
1 parent 5e7a5af commit ad4681f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/react-aria-components/src/ColorWheel.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ export const ColorWheelTrackContext = createContext<ContextValue<ColorWheelTrack
7878
export const ColorWheelTrack = forwardRef(function ColorWheelTrack(props: ColorWheelTrackProps, ref: ForwardedRef<HTMLDivElement>) {
7979
[props, ref] = useContextProps(props, ref, ColorWheelTrackContext);
8080
let state = useContext(ColorWheelStateContext)!;
81+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
82+
let {className, style, ...rest} = props;
8183

8284
let renderProps = useRenderProps({
8385
...props,
@@ -87,11 +89,10 @@ export const ColorWheelTrack = forwardRef(function ColorWheelTrack(props: ColorW
8789
state
8890
}
8991
});
90-
let DOMProps = filterDOMProps(props);
9192

9293
return (
9394
<div
94-
{...DOMProps}
95+
{...rest}
9596
{...renderProps}
9697
ref={ref}
9798
data-disabled={state.isDisabled || undefined} />

0 commit comments

Comments
 (0)