Skip to content

Commit

Permalink
checkbox: use symbol for context key
Browse files Browse the repository at this point in the history
  • Loading branch information
anatolzak committed Apr 16, 2024
1 parent 98bde97 commit 40f087d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bits-ui/src/lib/bits/checkbox/checkbox.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class CheckboxInputState {
* CONTEXT METHODS
*/

export const CHECKBOX_ROOT_KEY = "Checkbox.Root";
export const CHECKBOX_ROOT_KEY = Symbol("Checkbox.Root");

export function setCheckboxRootState(props: CheckboxRootStateProps) {
return setContext(CHECKBOX_ROOT_KEY, new CheckboxRootState(props));
Expand Down

0 comments on commit 40f087d

Please sign in to comment.