diff --git a/src/TextInput/PasswordInput.svelte b/src/TextInput/PasswordInput.svelte index 47106674..6033eda8 100644 --- a/src/TextInput/PasswordInput.svelte +++ b/src/TextInput/PasswordInput.svelte @@ -166,6 +166,7 @@ on:input={({ target }) => { value = target.value; }} + on:keydown on:focus on:blur /> {:else if story === 'password-visibility'} - + { + console.log('on:keydown', e); + }} /> {:else if story === 'controlled'} - + { + console.log('on:keydown', e); + }} /> { @@ -44,6 +54,9 @@ bind:ref {...$$props} bind:value + on:keydown={(e) => { + console.log('on:keydown', e); + }} on:change={() => { console.log('change'); }} /> diff --git a/src/TextInput/TextInput.svelte b/src/TextInput/TextInput.svelte index 47f196ef..a46eac00 100644 --- a/src/TextInput/TextInput.svelte +++ b/src/TextInput/TextInput.svelte @@ -138,6 +138,7 @@ on:input={({ target }) => { value = target.value; }} + on:keydown on:focus on:blur />