Open deflexor opened 1 year ago
+1
i have same problem. Do you have any solution?
I am running into TypeError: Cannot read properties of undefined (reading 'value')
on the beforeMaskedStateChange()
function, @deflexor would you mind pasting in what your console looks like? Might help me to understand how this is supposed to work more.
Hi, i have input field for credit card
autoComplete="cc-number"
and the mask for itmask={'9999 9999 9999 9999'}
. Typing in number or pasting it works very well, but chrome has feature to autocomplete stored card information. And in this case 3 last digits of card number got missing. It looks like this (console.log in beforeMaskedStateChange):So it looks like last digits got missing because of 3 spaces added, but why
beforeMaskedStateChange
is called so many times, and while pasting1234123412341234
from clipboard it works just well.