Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Upgrade focus trap to v8.0.0 #3490

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/terra-dropdown-button/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased

* Changed
* Upgrade focus-trap-react to version ^8.0.0.
* Migrate doc to terra-core-docs.

## 1.29.0 - (September 21, 2021)
Expand Down
2 changes: 1 addition & 1 deletion packages/terra-dropdown-button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"dependencies": {
"classnames": "^2.2.5",
"focus-trap-react": "^6.0.0",
"focus-trap-react": "^8.0.0",
"keycode-js": "^3.1.0",
"prop-types": "^15.5.8",
"terra-hookshot": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/terra-dropdown-button/src/_Dropdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const Dropdown = ({
onEsc={requestClose}
onOutsideClick={requestClose}
>
<FocusTrap focusTrapOptions={{ returnFocusOnDeactivate: true, initialFocus: openedViaKeyboard ? '' : buttonRef, clickOutsideDeactivates: true }}>
<FocusTrap focusTrapOptions={openedViaKeyboard ? { returnFocusOnDeactivate: true, clickOutsideDeactivates: true } : { returnFocusOnDeactivate: true, initialFocus: buttonRef, clickOutsideDeactivates: true }}>
<DropdownList
requestClose={requestClose}
width={width}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/terra-overlay/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased

* Changed
* Upgrade focus-trap-react to version ^8.0.0.
* Updated dependencies to not be hard-coded.

## 3.69.0 - (November 2, 2021)
Expand Down
2 changes: 1 addition & 1 deletion packages/terra-overlay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"dependencies": {
"classnames": "^2.2.5",
"focus-trap-react": "^6.0.0",
"focus-trap-react": "^8.0.0",
"keycode-js": "^3.1.0",
"mutationobserver-shim": "<=0.3.3",
"prop-types": "^15.5.8",
Expand Down