Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#705] Fix setReturnFocus option as function not getting prev node #706

Merged
merged 2 commits into from
Jun 9, 2022

Commits on Jun 9, 2022

  1. [#705] Fix setReturnFocus option as function not getting prev node

    Fixes #705
    
    When the `setReturnFocus` option is a function, it should get the
    previously focused node prior to activation as its first parameter,
    yet it was not because of the special handling in focus-trap-react
    for trap deactivation.
    stefcameron committed Jun 9, 2022
    Configuration menu
    Copy the full SHA
    0bb48e4 View commit details
    Browse the repository at this point in the history
  2. Add some tests

    stefcameron committed Jun 9, 2022
    Configuration menu
    Copy the full SHA
    ebea041 View commit details
    Browse the repository at this point in the history