Closed dsizomin closed 5 years ago
In current implementation onChange callback is being called before the expiration date field value is being formatted.
onChange
That means that consumer will rely on a wrong state of the field while trying to read the value.
Update field with formatted value before firing the onChange callback.
Thanks legend! I also did the same for the card number which will hopefully fix #13. Published on 1.0.7
1.0.7
Problem description
In current implementation
onChange
callback is being called before the expiration date field value is being formatted.That means that consumer will rely on a wrong state of the field while trying to read the value.
Proposed solution
Update field with formatted value before firing the
onChange
callback.