We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcfd554 commit db58664Copy full SHA for db58664
packages/@headlessui-react/src/components/switch/switch.tsx
@@ -111,7 +111,7 @@ let SwitchRoot = forwardRefWithAs(function Switch<
111
name?: string
112
value?: string
113
},
114
- ref: Ref<HTMLElement>
+ ref: Ref<HTMLButtonElement>
115
) {
116
let internalId = useId()
117
let {
@@ -128,7 +128,6 @@ let SwitchRoot = forwardRefWithAs(function Switch<
128
let switchRef = useSyncRefs(
129
internalSwitchRef,
130
ref,
131
- // @ts-expect-error figure out the correct type here
132
groupContext === null ? null : groupContext.setSwitch
133
)
134
0 commit comments