Open lakesare opened 4 years ago
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: https://github.com/medipass/react-payment-inputs/blob/687df514f2ed406b8d24ec2f9537c110f1db694c/src/usePaymentInputs.js#L117
expiryDateField
name field
Expected behaviour: automatic focusing can either be disabled, or we can specify the ref for the next-focus-element ourselves.
@jxom should this be closed since the autofocus parameter was added?
autofocus
It was added to the code, but it should be added to the docs as well.
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 customname field
. This happens because of this line: https://github.com/medipass/react-payment-inputs/blob/687df514f2ed406b8d24ec2f9537c110f1db694c/src/usePaymentInputs.js#L117Expected behaviour: automatic focusing can either be disabled, or we can specify the ref for the next-focus-element ourselves.