fix(inline-checkbox): bind indeterminate for Svelte 5 compatibility (#2045)

Fixes #2039
This commit is contained in:
Eric Liu 2024-11-10 11:50:41 -08:00 committed by GitHub
commit 99ba6f3db9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,7 +24,7 @@
type="checkbox"
class:bx--checkbox="{true}"
checked="{indeterminate ? false : checked}"
indeterminate="{indeterminate}"
bind:indeterminate
id="{id}"
{...$$restProps}
aria-checked="{indeterminate ? undefined : checked}"