Skip to content

Commit

Permalink
Enabled toggle functionality to the Switch label
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-mathai committed Jan 9, 2025
1 parent bc0f780 commit fe8fb80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Switch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const Switch = forwardRef(
"neeto-ui-switch__item--disabled": disabled,
})}
>
<input {...{ onChange }} type="checkbox" {...otherProps} />
<input {...{ id, onChange }} type="checkbox" {...otherProps} />
<span
aria-hidden="true"
data-cy={`${hyphenize(renderLabel)}-switch`}
Expand Down

0 comments on commit fe8fb80

Please sign in to comment.