mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-21 12:49:20 +00:00
fix(text-input): fix reactivity assignment
This commit is contained in:
parent
bf918d38ab
commit
2bba3df453
1 changed files with 2 additions and 2 deletions
|
@ -75,8 +75,8 @@
|
|||
$: isFluid = !!ctx && ctx.isFluid;
|
||||
$: errorId = `error-${id}`;
|
||||
$: warnId = `warn-${id}`;
|
||||
$: if ($$restProps.type === "number" && value !== "") {
|
||||
value = value === "" ? null : Number(value);
|
||||
$: if ($$restProps.type === "number") {
|
||||
value = value !== "" && value !== null ? Number(value) : null;
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue