mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
breaking(number-input): type value
as null | number
(#1044)
Fixes #1039
This commit is contained in:
parent
3018c2b207
commit
9e915cf90a
5 changed files with 58 additions and 58 deletions
|
@ -1,11 +1,14 @@
|
|||
<script lang="ts">
|
||||
import { NumberInput, NumberInputSkeleton } from "../types";
|
||||
import type { NumberInputProps } from "../types/NumberInput/NumberInput.svelte";
|
||||
|
||||
let value: NumberInputProps["value"] = null;
|
||||
</script>
|
||||
|
||||
<NumberInput
|
||||
label="Clusters"
|
||||
on:change="{(e) => {
|
||||
console.log(e.detail); // number
|
||||
console.log(e.detail); // null | number
|
||||
}}"
|
||||
/>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue