-
Notifications
You must be signed in to change notification settings - Fork 57
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
onModalClosed
doesn't work
#81
Comments
Hi @matsko! You might try changing the prop name like so:
Let us know if that works for you. 🙏 |
@chrisloeper-coinbase see my comment above:
|
I'm also seeing that error. However, the callback does fire when I user |
Yes it works. But the error is still showing up. |
I see, thank you for the heads up! We will prioritize this as we are able. We just wanted to ensure that you were not blocked. |
Yes I can confirm that |
I will talk with the team to see how best to prioritize this work. |
@chrisloeper-coinbase I've quickly checked through the code and it seems the only place where the code must be updated to fix this issue is here: https://github.com/coinbase/react-coinbase-commerce/blob/master/src/index.js#L28 You only need to add |
also this problem exists since 2019 and this issue was simply deleted without any fix/workaround/feedback from the team. |
Hello.
When the
<CoinbaseCommerceButton>
component is instantiated (and the modal opens up), the component fails to render if theonModalClosed
property is set.According to the documentation here,
onModalClosed
is a valid property, however, the component doesn't look like it has the code in place to recognize it.Here's what my code looks like:
I tried both
onModalClosed
andonModalClose
and I got the same error:The text was updated successfully, but these errors were encountered: