Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Card Element onChange does not work consistently #574

Open
paullewisn opened this issue Mar 11, 2025 · 1 comment
Open

[BUG]: Card Element onChange does not work consistently #574

paullewisn opened this issue Mar 11, 2025 · 1 comment
Labels
bug Something isn't working stale

Comments

@paullewisn
Copy link

paullewisn commented Mar 11, 2025

What happened?

<CardElement
    key={clientSecret}
    onChange={() => {
        //! This only fires on the card number NOT the expiry date or cvc
        console.log("onChange")
     }}
    options={{ hidePostalCode: true }}
/>

Hi guys, I noticed that in this element the "onChange" is only fired when editing the value in card number field, not the expiry date or CVC fields.

Environment

No response

Reproduction

No response

@paullewisn paullewisn added the bug Something isn't working label Mar 11, 2025
Copy link

stale bot commented Apr 1, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

1 participant