Skip to content

Commit

Permalink
fix(checkbox): bind indeterminate for Svelte 5 compatibility
Browse files Browse the repository at this point in the history
Fixes #2039
  • Loading branch information
metonym committed Nov 10, 2024
1 parent fd9d7ee commit 6d0886e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion COMPONENT_INDEX.md
Original file line number Diff line number Diff line change
Expand Up @@ -458,10 +458,10 @@ None.
| :------------ | :------- | :--------------- | :------- | ----------------------------------------- | ------------------------------------------------ | ------------------------------------------------- |
| ref | No | <code>let</code> | Yes | <code>null &#124; HTMLInputElement</code> | <code>null</code> | Obtain a reference to the input HTML element |
| title | No | <code>let</code> | Yes | <code>string</code> | <code>undefined</code> | Specify the title attribute for the label element |
| indeterminate | No | <code>let</code> | Yes | <code>boolean</code> | <code>false</code> | Specify whether the checkbox is indeterminate |
| group | No | <code>let</code> | Yes | <code>ReadonlyArray<any></code> | <code>undefined</code> | Specify the bound group |
| checked | No | <code>let</code> | Yes | <code>boolean</code> | <code>false</code> | Specify whether the checkbox is checked |
| value | No | <code>let</code> | No | <code>any</code> | <code>""</code> | Specify the value of the checkbox |
| indeterminate | No | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Specify whether the checkbox is indeterminate |
| skeleton | No | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to display the skeleton state |
| required | No | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to mark the field as required |
| readonly | No | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` for the checkbox to be read-only |
Expand Down
2 changes: 1 addition & 1 deletion docs/src/COMPONENT_API.json
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@
"isFunctionDeclaration": false,
"isRequired": false,
"constant": false,
"reactive": false
"reactive": true
},
{
"name": "skeleton",
Expand Down
2 changes: 1 addition & 1 deletion src/Checkbox/Checkbox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
checked="{checked}"
disabled="{disabled}"
id="{id}"
indeterminate="{indeterminate}"
bind:indeterminate
name="{name}"
required="{required}"
readonly="{readonly}"
Expand Down

0 comments on commit 6d0886e

Please sign in to comment.