mirror of
https://github.com/docmost/docmost.git
synced 2026-05-20 00:14:10 +08:00
fix(base): dismiss hide-fields popover on escape and outside click
This commit is contained in:
@@ -68,6 +68,9 @@ export function ViewFieldVisibility({
|
|||||||
position="bottom-end"
|
position="bottom-end"
|
||||||
shadow="md"
|
shadow="md"
|
||||||
width={260}
|
width={260}
|
||||||
|
trapFocus
|
||||||
|
closeOnEscape
|
||||||
|
closeOnClickOutside
|
||||||
withinPortal
|
withinPortal
|
||||||
>
|
>
|
||||||
<Popover.Target>{children}</Popover.Target>
|
<Popover.Target>{children}</Popover.Target>
|
||||||
|
|||||||
Reference in New Issue
Block a user