-
Notifications
You must be signed in to change notification settings - Fork 73
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
Unable to close the modal using hooks #129
Comments
@RubenSousaDinis Left a comment on your PR, which I believe should fix the issue. In case it doesn't, we could get on a call and try to debug it together. lmk |
Removing the prop still doesn't allow me to close the modal. I've updated the PR without it, but it still doesn't close. I've recorded a loom with the problem: https://www.loom.com/share/bf52be7a170c474f8f78ce1d002bec4a. |
@RubenSousaDinis Hmmm, it looks like the model starts closing and then gets opened again. I'm trying to repro but failing to set the project up. Here's what I get when running
|
@m1guelpf our project setup is a bit complicated since it requires database and environment configuration. I've updated how it is being used in our app and now I can close the modal if I click outside the modal. The only issue is the click on the I've placed this in the component code and it's not called when I click the
Is it possible to reproduce this in a react test app you might have to test hooks usage? |
Nice |
Hi!
I'm using hooks to open the modal. https://docs.worldcoin.org/idkit/reference#hooks
The problem is that I can't close it. When I click the X button on the top right corner of the modal nothing happens.
Is there any prop that we can pass to call the
setOpen
function?Here is how it's currently being used by us: https://github.com/talentprotocol/web-dapp/pull/1267/files#diff-c26670dda0c72d9fca11f1c7408672e1bcea6de4ec2df1bcd03d35d932a4e31d
The text was updated successfully, but these errors were encountered: