Focus becomes trapped within iframe in GridListItem
- Dominant language
- TypeScript
- Stars
- 15.9k
- Forks
- 1.6k
- Avg merge
- 3d 9m
- Merged PRs (30d)
- 59
Description
### Discussed in https://github.com/adobe/react-spectrum/discussions/4760
Originally posted by **AlexGalays** July 12, 2023
It doesn't seem possible as this hook uses `getFocusableTreeWalker` internally, which has a hardcoded list of focusable elements to cycle.
My use case: In my grid row cell, there is an iframe for read only but important purposes, so it can not be hidden. I want to skip it entirely and just go to the next item. Also currently, once the iframe has focus, it then eats all subsequent left/right arrow keyboard events, ending the navigation.
Being able to pass some `accept(node: Element) => boolean` function like in `FocusManager` might be nice?
Contributor guide
Assessment
This issue has not been assessed yet.