Because the net effect is that validation errors aren't displayed when tabbing to other fields within the form that aren't part of this library. Is that intentional?
Since cardNumber isn't valid or invalid based on the validity of the other fields, why not show errors (if any) as soon as it looses focus?
Or, at a minimum to maintain a similar behavior, how about just checking to see if library fields are active?
What's the rational for this check? https://github.com/medipass/react-payment-inputs/blob/687df514f2ed406b8d24ec2f9537c110f1db694c/src/usePaymentInputs.js#L57-L61
Because the net effect is that validation errors aren't displayed when tabbing to other fields within the form that aren't part of this library. Is that intentional?
Since
cardNumber
isn't valid or invalid based on the validity of the other fields, why not show errors (if any) as soon as it looses focus?Or, at a minimum to maintain a similar behavior, how about just checking to see if library fields are active?