Skip to content

FocusLock should have cross-frame behavior controllable #104

@theKashey

Description

@theKashey

reach/reach-ui#536

I am adding new crossFrame option, right now defaults to true, as long as this behaviour might introduce a breaking change for someone.

setting crossFrame=true will work "as today". Focus will try to keep focus
setting crossFrame=false will work "as proposed". Iframes would be treated as "pages", and let you move focus outside.
I am not sure which behaviour is actually correct - iframes are usually a part of a page, a part of your product, and the only exemptions are non-production examples like code-sandbox.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions