Input only supported type=text, which should not be since this is a component that should mirror the behaviour of the <input> DOM element.
Since it's not possible to do two-way binding of value when changing the type of the input (see links below), the on:input binding had to do this manually.
Originated from https://discord.com/channels/954790377754337280/1069668539658682409
Input
only supportedtype=text
, which should not be since this is a component that should mirror the behaviour of the<input>
DOM element. Since it's not possible to do two-way binding of value when changing thetype
of the input (see links below), theon:input
binding had to do this manually.https://stackoverflow.com/questions/57392773/error-type-attribute-cannot-be-dynamic-if-input-uses-two-way-binding https://github.com/sveltejs/svelte/issues/3921
Before submitting the PR, please make sure you do the following
[@svelteui/core]
,[@svelteui/actions]
,[@svelteui/motion]
,[@svelteui/core]
,[core]
, or[docs]
.Tests
npm test
and lint the project withyarn lint
or just runyarn repo:prepush
and check to see if it's passing.