Open vhscom opened 1 year ago
Describe the bug
I'm using the v7 beta and this code from OP of #274 throws an error:
<script> import TextField from "@smui/textfield" </script> <TextField/>
Error thrown:
Textfield.svelte:431 Uncaught (in promise) Error: SMUI Textfield initialized without Input component. at Textfield.svelte:431:30
Among other probable methods, the error can be resolved by setting a bind:value for the Textfield tag like:
bind:value
Textfield
<script> import TextField from "@smui/textfield" let quantity = '' </script> <TextField/> <Textfield bind:value={quantity} label="Quantity" />
Expected behavior Component renders when <Textfield /> is added to the page, error specified is not thrown
<Textfield />
Additional context I'm using the v7 beta 15 but I suspect this bug has existed for a while and may be a regression if #274 was fixed in v5.
Describe the bug
I'm using the v7 beta and this code from OP of #274 throws an error:
Error thrown:
Among other probable methods, the error can be resolved by setting a
bind:value
for theTextfield
tag like:Expected behavior Component renders when
<Textfield />
is added to the page, error specified is not thrownAdditional context I'm using the v7 beta 15 but I suspect this bug has existed for a while and may be a regression if #274 was fixed in v5.