From a15c1f5471d395ae800f7c8b396115ec41ac136d Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Wed, 2 Feb 2022 20:06:26 -0800 Subject: [PATCH] breaking(text-input): dispatch instead of forward input, change events --- src/TextInput/TextInput.svelte | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/src/TextInput/TextInput.svelte b/src/TextInput/TextInput.svelte index 86417f83..d3a95249 100644 --- a/src/TextInput/TextInput.svelte +++ b/src/TextInput/TextInput.svelte @@ -1,4 +1,9 @@ @@ -174,8 +193,8 @@ class:bx--text-input--warn="{warn}" {...$$restProps} class="{size && `bx--text-input--${size}`}" - on:change - on:input + on:change="{onChange}" + on:input="{onInput}" on:keydown on:keyup on:focus