Skip to content

Support passing focusOptions to react-focus-lock #62

@cee-chen

Description

@cee-chen

As of 2.7.0, react-focus-lock has supported a focusOptions prop, primarily for allowing consumers to pass preventScroll to the initial focus event. react-focus-on unfortunately has not exposed nor is passing that prop directly to react-focus-lock, which potentially leads to scroll jumping issues that cannot be overridden (see theKashey/react-focus-lock#162 for more info).

It should be relatively trivial to pull focusOptions from props and pass it directly to <ReactFocusLock> here: https://github.com/theKashey/react-focus-on/blob/master/src/UI.tsx#L49

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