Skip to content

Focus becomes trapped within iframe in GridListItem #4767

Open
@LFDanLu

Description

@LFDanLu

Discussed in #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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status

      🩺 To Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions