React Focus Trap Versions Save

Traps focus for accessible dropdowns and modal content

v2.5.0

6 years ago
  • Modernization. Ensure support for React 16.

v2.4.0

7 years ago
  • Switch to class React form to avoid deprecations
  • Remove proptypes to avoid deprecations

v2.3.0

7 years ago
  • Removed "role" attribute from container. Otherwise, screen readers will read this as "Navigation. One item", since there's only one immediate readable child.
  • Fixed deprecation warnings with React 15.x

v1.0.1

8 years ago
  • Fixes a case where the onExit callback was invoked without it being defined

v1.0.0

8 years ago
  • react-focus-trap is now active by default. This component is used in many settings where it is not a modal. In the case of modals, active is typically assigned as a dynamic prop anyway.
  • The onExit property is no longer required.

Upgrading

active is now true by default. Please verify that this does not conflict with your configuration settings (although our experience has shown this never to be the case).

v0.1.0

9 years ago
  • Added an active property. This is true by default, however allows the FocusTrap to be eliminated if not active