fix(text-input): coerce TextInput value to number if type is numerical (#902)

Fixes #898
This commit is contained in:
Eric Liu 2021-11-10 14:45:13 -08:00 committed by GitHub
commit 32beeac85b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -175,7 +175,7 @@
on:change
on:input
on:input="{({ target }) => {
value = target.value;
value = type === 'number' ? Number(target.value) : target.value;
}}"
on:keydown
on:keyup