#9227·mantine

Add 'capture' prop to <Popover /> component

Author: StepanSnigurCreated Sep 29, 2026Updated Sep 30, 2026

Dependencies check up

  • I have verified that I use latest version of all @mantine/* packages

What version of @mantine/* packages do you have in package.json?

9.6.3

What package has an issue?

@mantine/core

What framework do you use?

Vite

In which browsers you can reproduce the issue?

None

Describe the bug

After implementation of #9213 in v9.6.3, capture param can be passed to <Popover /> props.

So, adding a capture prop makes it possible to fix this the same problem on component level.

Popover is the foundation for a large part of the component library. For example, Menu is built directly on top of it.

That means a single new prop on Popover would fix the outside-click closing behavior for all of them at once, without every one of these components having to implement its own option and its own fix.

If possible, include a link to a codesandbox with a minimal reproduction

No response

Possible fix

Add an optional capture / useCapture prop to Popover:

<Popover opened={opened} useCapture onClose={() => setOpened(false)}>

The prop is simply forwarded to the internal useClickOutside call, so the implementation change should be minimal.

Self-service

  • I would be willing to implement a fix for this issue