mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
cleaning
This commit is contained in:
parent
4646364a5a
commit
6b0ed4cc05
1 changed files with 2 additions and 5 deletions
|
@ -101,6 +101,7 @@
|
|||
/** Obtain a reference to the input HTML element */
|
||||
export let ref = null;
|
||||
|
||||
import { tick } from "svelte";
|
||||
import { createEventDispatcher } from "svelte";
|
||||
import Add from "../icons/Add.svelte";
|
||||
import Subtract from "../icons/Subtract.svelte";
|
||||
|
@ -145,11 +146,8 @@
|
|||
return raw != "" ? Number(raw) : null;
|
||||
}
|
||||
|
||||
function updatePreviousValue() {
|
||||
previousValue = parse(value);
|
||||
}
|
||||
|
||||
async function onInput({ target, inputType, data }) {
|
||||
previousValue = parse(value);
|
||||
const possibleNewValue = parse(target.value);
|
||||
value = parse(target.value);
|
||||
|
||||
|
@ -254,7 +252,6 @@
|
|||
max="{max}"
|
||||
min="{min}"
|
||||
step="{step}"
|
||||
on:input="{updatePreviousValue}"
|
||||
value="{value ?? ''}"
|
||||
readonly="{readonly}"
|
||||
{...$$restProps}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue