Closed slavafomin closed 6 years ago
The workaround I use is to manually trigger the input
event on the input field like this:
inputElement.dispatchEvent(new CustomEvent('input', {}));
This isn't a use case I've considered as most of the time you're not dealing with known card numbers (due to PCI compliance issues), glad you found a workaround!
Is there a way to pre-fill the input value and make the value properly formatted?
Thank you!