mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-21 20:59:20 +00:00
parent
a8039a4d1e
commit
da1f38be94
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@
|
||||||
$: dispatch("change", value);
|
$: dispatch("change", value);
|
||||||
$: incrementLabel = translateWithId("increment");
|
$: incrementLabel = translateWithId("increment");
|
||||||
$: decrementLabel = translateWithId("decrement");
|
$: decrementLabel = translateWithId("decrement");
|
||||||
$: value = inputValue != null ? Number(inputValue) : null;
|
$: value = inputValue != "" ? Number(inputValue) : null;
|
||||||
$: error =
|
$: error =
|
||||||
invalid || (!allowEmpty && value == null) || value > max || value < min;
|
invalid || (!allowEmpty && value == null) || value > max || value < min;
|
||||||
$: errorId = `error-${id}`;
|
$: errorId = `error-${id}`;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue