fix(number-input): type dispatched change event

This commit is contained in:
Eric Liu 2020-12-05 17:04:13 -08:00
commit 34000a1166
5 changed files with 21 additions and 15 deletions

View file

@ -2,7 +2,12 @@
import { NumberInput, NumberInputSkeleton } from "../types";
</script>
<NumberInput label="Clusters" />
<NumberInput
label="Clusters"
on:change="{(e) => {
console.log(e.detail); // number
}}"
/>
<NumberInput
label="Clusters"