This PR originates from me spending about an hour debugging the inexplicable error Uncaught (in promise) Error: SMUI Textfield initialized without Input component. Turns out, I didn't initalize the value, i.e. I did this:
<Textfield bind:value />
<script lang="ts">
import Textfield from '@smui/textfield';
let value;
</script>
With this change, the error message more clearly points people to the cause of the issue.
This PR originates from me spending about an hour debugging the inexplicable error
Uncaught (in promise) Error: SMUI Textfield initialized without Input component
. Turns out, I didn't initalize thevalue
, i.e. I did this:With this change, the error message more clearly points people to the cause of the issue.