Skip to content

Commit

Permalink
πŸ›(AlphanumericInput): onFilled trigger (Firefox)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyokolux committed Oct 13, 2021
1 parent 91a3001 commit adcedf5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/AlphanumericInput/AlphanumericInput.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
let isLimitReached = false
$: allChunksFilled = enteredChunks.join('').length === value.length
$: {
if (allChunksFilled) {
onFilled()
}
}
$: {
isLimitReached = events.length >= TRACK_EVENTS_LIMIT
if (isLimitReached) {
Expand Down Expand Up @@ -52,11 +57,6 @@
if (isKeyIgnored) return
if (allChunksFilled) {
onFilled()
return
}
if (isChunkFull
&& !isLastChunck
&& !isKeyAnArrow) {
Expand Down

0 comments on commit adcedf5

Please sign in to comment.