mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
chore(number-input): ensure value is a number
Fast-follow to #1555. `ref.value` remains a string if not converted to a number.
This commit is contained in:
parent
e6f5766e46
commit
a0600e8bdb
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@
|
|||
} else {
|
||||
ref.stepDown();
|
||||
}
|
||||
value = ref.value;
|
||||
value = +ref.value;
|
||||
|
||||
dispatch("input", value);
|
||||
dispatch("change", value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue