Closed crabvk closed 1 month ago
The commit message says:
Popover: Fix
onClose
function being called twice with controlled state
so, seems like onClose
called somewhere else, but onOpen
doesn't.
Looks strange 🤔
Good catch on the commit message, I missed that. So yeah it seems it used to (be called even when controlled), but it was doing it twice and there was an attempt to fix it.
I modified your example to add the onClose as well and that doesn't seem to trigger either.
Dependencies check up
What version of @mantine/* packages do you have in package.json?
7.13.2
What package has an issue?
@mantine/core
What framework do you use?
Vite
In which browsers you can reproduce the issue?
All
Describe the bug
Using controlled state with
useDisclosure
andonOpen
callback of Popover component. The callback isn't being called.If possible, include a link to a codesandbox with a minimal reproduction
https://codesandbox.io/p/sandbox/dh3ddv
Possible fix
No response
Self-service