mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
fix(text-input): coerce TextInput value to number if type is numerical (#902)
Fixes #898
This commit is contained in:
parent
7e76cbc8a9
commit
32beeac85b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue