nextcloud-vue icon indicating copy to clipboard operation
nextcloud-vue copied to clipboard

add fallBackFocus to NcPopover

Open grnd-alt opened this issue 1 year ago • 0 comments

The Focus-Trap library will throw an error if a trap does not have any elements it can focus. Therefore we need something to set focus on if there's nothing else to use. In the documentation it is recommended to give the container a tab-index of -1 to make it focusable but not appear in the tab flow, and then set that as the fallBack to focus on when theres nothing else in the container.

grnd-alt avatar Mar 25 '24 10:03 grnd-alt