- 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. Thetag
prop 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: true
to be ignored when using theactive
prop 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
componentWillMount
usage.
- 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+ demandsclass
es, so Babel-compilation. Which is actually a huge overhaul, though in semver it's just a patch.
- Fix handling of
focusTrapOptions.returnFocusOnDeactivate
for React-specific kinks likeautoFocus
on inputs.
- Upgrade
focus-trap
for important bug fix.
- Introduce
focusTrapOptions
prop (and remove redundancies). - Upgrade to
focus-trap
v2.
- Allow React 15 as peer dependency.
- Upgrade
focus-trap
to addescapeDeactivates
andclickOutsideDeactivates
props. - Allow arbitrary props passed through to the element itself.
- Move
react
topeerDependencies
and removereact-dom
dependency.
- Upgrade to React 0.14 and its companion ReactDOM.
- Initial release.