Focus automatically jumps to expiryDateField
Opened this issue · 2 comments
lakesare commented
When we have an order of inputs like this:
and we input the valid card number, focus is automatically switched to the expiryDateField
, missing the custom name field
.
This happens because of this line:
react-payment-inputs/src/usePaymentInputs.js
Line 117 in 687df51
Expected behaviour:
automatic focusing can either be disabled, or we can specify the ref for the next-focus-element ourselves.