Skip to content

Commit

Permalink
chore(checkbox): update ref type
Browse files Browse the repository at this point in the history
  • Loading branch information
wingkwong committed Mar 30, 2024
1 parent 3862689 commit 89c9a10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/checkbox/__tests__/checkbox.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe("Checkbox", () => {
});

it("ref should be forwarded", () => {
const ref = React.createRef<HTMLLabelElement>();
const ref = React.createRef<HTMLInputElement>();

render(<Checkbox ref={ref}>Option</Checkbox>);
expect(ref.current).not.toBeNull();
Expand Down

0 comments on commit 89c9a10

Please sign in to comment.