- Update focus-trap to 4.0.2, which includes a queue of traps, so when a trap is paused because another trap activates, it will be unpaused when that other trap deactivates. If Trap A was automatically paused because Trap B activated (existing behavior), when Trap B is deactivated Trap A will be automatically unpaused (new behavior).
- Fix TypeScript declarations.
- Breaking change:
<FocusTrap>now expects exactly one child element which can be any HTML element or other React component that contains focusable elements. Thetagprop has been removed, as has support for additional props that are passed through to thetag, because it is no longer necessary: you should provide your own element, with whatever props you want, as a child of<FocusTrap>.
- Fix bug that caused
returnFocusOnDeactivate: trueto be ignored when using theactiveprop to activate & deactivate the focus trap.
- Update focus-trap to 3.0.0, which includes a couple of behavior changes. The key change is that focus management has been changed so that you can include tricky focusable elements like radio groups, iframes, and shadow DOM components in your trap — as long as the first and last focusable elements in the trap can still be detected by Tabbable.
- An effect of this change is that positive tabindexes are no longer guaranteed to work as expected. You should avoid these.
- Re-add TypeScript declarations.
- Remove
componentWillMountusage.
- Fix TypeScript declarations so props are available on the imported namespace.
- Fix React import in TypeScript declarations.
- Add TypeScript declarations.
- Prevent error in IE edge cases when the previously focused element does not have a
focus()function.
- Allow React v16 peer dependency.
- Introduce
dist/focus-trap-react.js, wheresrc/now compiles to, since React 15.5+ demandsclasses, so Babel-compilation. Which is actually a huge overhaul, though in semver it's just a patch.
- Fix handling of
focusTrapOptions.returnFocusOnDeactivatefor React-specific kinks likeautoFocuson inputs.
- Upgrade
focus-trapfor important bug fix.
- Introduce
focusTrapOptionsprop (and remove redundancies). - Upgrade to
focus-trapv2.
- Allow React 15 as peer dependency.
- Upgrade
focus-trapto addescapeDeactivatesandclickOutsideDeactivatesprops. - Allow arbitrary props passed through to the element itself.
- Move
reacttopeerDependenciesand removereact-domdependency.
- Upgrade to React 0.14 and its companion ReactDOM.
- Initial release.