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

Stripe Elements and Material UI V5 is broken #26856

Closed
ffMathy opened this issue Jun 20, 2021 · 2 comments
Closed

Stripe Elements and Material UI V5 is broken #26856

ffMathy opened this issue Jun 20, 2021 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@ffMathy
Copy link

ffMathy commented Jun 20, 2021

Has this changed at all under v5? I'm able to get a TextField with the Card elements and stylings, but I'm not seeing onChange getting triggered at all (and it does get triggered when the CardNumberElement is on its own without this wrapping).

I'm getting Error: Material-UI: Expected valid input target. Did you use a custom 'inputComponent' and forget to forward refs? See https://material-ui.com/r/input-component-ref-interface for more info.

Originally posted by @dorgnarg in #16037 (comment)

@oliviertassinari
Copy link
Member

Duplicate of #16037

@oliviertassinari oliviertassinari marked this as a duplicate of #16037 Jun 20, 2021
@github-actions github-actions bot added the duplicate This issue or pull request already exists label Jun 20, 2021
@IsaacTrevino
Copy link

I found a solution. Since I'm using stripe.js V2 you have to use a different implementation.
PaymentElement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants