You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Binding value of Textfield on v8 alpha with svelte 5 makes Typescript complain: Type 'string | number | null' is not assignable to type 'string'.
To Reproduce
<scriptlang="ts">
importTextfieldfrom'@smui/textfield';let value =$state("");
</script>
<Textfieldtype="text"bind:value />
The only way for the error to go away is to define value as string | number | null which is undesirable.
Defining value as just string works just fine on v7 with svelte 4.
The text was updated successfully, but these errors were encountered:
Describe the bug
Binding value of Textfield on v8 alpha with svelte 5 makes Typescript complain:
Type 'string | number | null' is not assignable to type 'string'.
To Reproduce
The only way for the error to go away is to define
value
asstring | number | null
which is undesirable.Defining
value
as juststring
works just fine on v7 with svelte 4.The text was updated successfully, but these errors were encountered: