diff --git a/src/components/AlphanumericInput/AlphanumericInput.svelte b/src/components/AlphanumericInput/AlphanumericInput.svelte index c9355d0..a26f672 100644 --- a/src/components/AlphanumericInput/AlphanumericInput.svelte +++ b/src/components/AlphanumericInput/AlphanumericInput.svelte @@ -24,6 +24,11 @@ let isLimitReached = false $: allChunksFilled = enteredChunks.join('').length === value.length + $: { + if (allChunksFilled) { + onFilled() + } + } $: { isLimitReached = events.length >= TRACK_EVENTS_LIMIT if (isLimitReached) { @@ -52,11 +57,6 @@ if (isKeyIgnored) return - if (allChunksFilled) { - onFilled() - return - } - if (isChunkFull && !isLastChunck && !isKeyAnArrow) {