-
-
Notifications
You must be signed in to change notification settings - Fork 523
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
[Web] CardField
#card-element
selector applies to no DOM elements
#1680
Comments
CardField
#card-element
selector applied to no DOM elementsCardField
#card-element
selector applies to no DOM elements
can you provide me with a reproduction example because the example app runs fine in stripe web |
Hi, Here is a reproducible example: https://github.com/Tom-Carpendale/FlutterStripeCardFieldError Having worked it down to this, it seems the issue may be more Flutter related, but it would be great to have your thoughts on it too. The project contains the Stripe If you change the animation used, and reload the project you can see how some of them cause the issue and some do not. Thanks for your time :) |
can you check it on this branch |
yes I could reproduce it thanks! I could still get the desired effect by changing the tween to: // This animation breaks the card-element
_fadeAnimation2 = Tween<double>(
begin: 0.01,
end: 1.0,
).animate(
CurvedAnimation(parent: _animationController, curve: Curves.easeInOut),
); this still has the effect you want and does not crash. I guess the problem is that it is a native element and I am not sure it bodes well with these animations. We can try logging an issue for the flutter team but they probably will say the stripe js widget is incorrect. |
Hi, Thanks for looking into this more! I just tried again, and the Thank you for your help, I think we will go with the 0.01 solution. |
Hi @Tom-Carpendale, could you check if this change #1730 also works for you? |
Hi Jaime, Thank you for looking into this, that branch does fix my issue! Thank you |
Describe the bug
The
CardField
widget does not display or allow input, and gives this error:To Reproduce
Steps to reproduce the behavior:
Flutter
,flutter_stripe
andflutter_stripe_web
mentioned belowCardField
widget to the app.Expected behavior
The CardField widget allows card detail input and builds without error
Smartphone / tablet
Additional context
This issue occurs when I upgraded from Flutter version
3.16.9
to3.19.3
, and when upgradingflutter_stripe
from9.5.0+1
to10.1.1
andflutter_stripe_web
from4.5.0
to5.1.0
I am aware of the message
The text was updated successfully, but these errors were encountered: