You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
marko1010
changed the title
[BUG]: PaymentElement onChange triggers only once and doesn't show country data
[BUG]: PaymentElement onChange triggers only once and doesn't provide country data
Nov 12, 2024
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.
What happened?
I want to extract the country field value from the
PaymentElement
on every change.<PaymentElement onChange={(e) => console.log(e)} />
When I select a country from the dropdown the
onChange
fires and the console logs:The
value
object doesn't contain information about the country. How can I obtain that information?Additionally, on subsequent country changes the
onChange
event doesn't get fired anymore.Environment
Chrome 130.0.6723.117 on Windows 11
Reproduction
No response
The text was updated successfully, but these errors were encountered: