- Use
index.js
for main, fix "Invalid 'main' field" deprecation notice.
- The deploy process didn't copy over type definitions
- Add TypeScript declarations
- Remove incorrect production dependency
- Eliminate internal focus stack, avoiding a memory leak
- Modernization. Ensure support for React 16.
- Switch to class React form to avoid deprecations
- Remove proptypes to avoid deprecations
- Bad release. Properly addresses autofocus.
- Do not trap focus if the current active element is inside the container. This resolves issues with the autofocus attribute.
- Fix case of missing focus if no element can be found
- 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
- Added looser
react
peer dependency declaration
- Refactor internals to eliminate some weight
- Adds additional check to prevent
focus()
from being called on null anchors
- Important Update: This update makes breaking changes to support
React 0.14. This is because react-focus-trap depends on
React.findDOMNode
. Version 1.0 will continue to receive support for versions of React before 0.14.0.
- Fix conditional that would prevent return of focus
- Add conditional around
document
access to allow isomorphic rendering - Bump dependency list to allow for React 0.14. This will still expose warnings in the console about deprecation warnings, however it should unblock 0.14 development in the meantime.
- The previous fix for focusing a nully anchor introduced a new bug:
it would not focus on the anchor. This version changes the way
the
focus
method is identified to fix this bug.
- Fixed case where anchor was lost transitioning between two pages with focus traps via hash URL routing.
- Fixes a case where the onExit callback was invoked without it being defined
- 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.
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).
- Updated dependencies
- Updated build process
- Fixes cases when more than one FocusTrap is activated
- Breaking change: Update the way class names are built. They will
now be based upon the className provided to the
<FocusTrap />
- Addresses some issues with screen readers after conducting testing with VoiceOver
- More sensible defaults. See readme
- Add the ability to configure inner container element className with the 'className' property
- Add handling for when element is not defined
- Added the ability to set the inner container element using the
element
property
- Addresses invalid
active
PropType.
- Added an
active
property. This is true by default, however allows the FocusTrap to be eliminated if not active