Skip to content

Commit

Permalink
Make sure we're passing aria props to InternalCheckbox
Browse files Browse the repository at this point in the history
  • Loading branch information
gabro committed Sep 20, 2023
1 parent 9a1a505 commit 15c66a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ type Props = {

export function InternalCheckbox({ option, inputRef, inputProps }: Props) {
const config = useBentoConfig().selectionControl.element;
const { fieldProps, labelProps } = useLabel(option);
const { fieldProps, labelProps } = useLabel({ ...option, ...inputProps });
const { isFocusVisible, focusProps } = useFocusRing({ autoFocus: inputProps.autoFocus });
return (
<Box
Expand Down

0 comments on commit 15c66a6

Please sign in to comment.