Closed mrfelton closed 5 years ago
The onError handler doesn't seem to be firing.
onError
<input {...getCardNumberProps({ onError: () => console.log('SOME ERROR') })} />
This never logs. Other handlers do work.
When is it supposed to fire? I would expect it to run if I type something invalid into the box.
This issue is that I was trying to set this at the field leve rather than as config to the hook itself. The following does work:
usePaymentInputs({ onError: handleOnError })
The
onError
handler doesn't seem to be firing.This never logs. Other handlers do work.
When is it supposed to fire? I would expect it to run if I type something invalid into the box.