diff --git a/.yarn/offline-mirror/focus-trap-6.6.1.tgz b/.yarn/offline-mirror/focus-trap-6.6.1.tgz deleted file mode 100644 index ef1e3e3b4..000000000 Binary files a/.yarn/offline-mirror/focus-trap-6.6.1.tgz and /dev/null differ diff --git a/.yarn/offline-mirror/focus-trap-6.7.1.tgz b/.yarn/offline-mirror/focus-trap-6.7.1.tgz new file mode 100644 index 000000000..119217bb9 Binary files /dev/null and b/.yarn/offline-mirror/focus-trap-6.7.1.tgz differ diff --git a/.yarn/offline-mirror/focus-trap-react-8.7.1.tgz b/.yarn/offline-mirror/focus-trap-react-8.7.1.tgz deleted file mode 100644 index 1e74ff670..000000000 Binary files a/.yarn/offline-mirror/focus-trap-react-8.7.1.tgz and /dev/null differ diff --git a/.yarn/offline-mirror/focus-trap-react-8.8.1.tgz b/.yarn/offline-mirror/focus-trap-react-8.8.1.tgz new file mode 100644 index 000000000..9a1ef6d4b Binary files /dev/null and b/.yarn/offline-mirror/focus-trap-react-8.8.1.tgz differ diff --git a/package.json b/package.json index 744e9a10e..94e53b183 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "classnames": "^2.3.1", "downshift": "^6.1.3", "export-to-csv": "^0.2.1", - "focus-trap-react": "^8.7.0", + "focus-trap-react": "^8.8.1", "invariant": "^2.2.3", "numeral": "^2.0.6", "prop-types": "^15.7.2", diff --git a/src/components/Portal/Portal.js b/src/components/Portal/Portal.js index 693f73585..ba8067cb9 100644 --- a/src/components/Portal/Portal.js +++ b/src/components/Portal/Portal.js @@ -256,7 +256,6 @@ Portal.defaultProps = { focusTrap: true, focusTrapOptions: FocusTrap.defaultProps.focusTrapOptions, hasOverlay: true, - initialFocus: null, onOverlayClick: undefined, overlayOptions: {}, rootNode: isClient() && document.body, diff --git a/src/components/Tearsheet/TearsheetSmall/__tests__/__snapshots__/TearsheetSmall-test.js.snap b/src/components/Tearsheet/TearsheetSmall/__tests__/__snapshots__/TearsheetSmall-test.js.snap index 9785a05cb..ea9e1de15 100644 --- a/src/components/Tearsheet/TearsheetSmall/__tests__/__snapshots__/TearsheetSmall-test.js.snap +++ b/src/components/Tearsheet/TearsheetSmall/__tests__/__snapshots__/TearsheetSmall-test.js.snap @@ -10,7 +10,6 @@ exports[`TearsheetSmall renders 1`] = ` focusTrap={true} focusTrapOptions={Object {}} hasOverlay={true} - initialFocus={null} overlayOptions={Object {}} rootNode={} stopPropagation={false} @@ -121,7 +120,6 @@ exports[`TearsheetSmall renders disabled buttons 1`] = ` focusTrap={true} focusTrapOptions={Object {}} hasOverlay={true} - initialFocus={null} overlayOptions={Object {}} rootNode={} stopPropagation={false} @@ -213,7 +211,6 @@ exports[`TearsheetSmall renders loading state 1`] = ` focusTrap={true} focusTrapOptions={Object {}} hasOverlay={true} - initialFocus={null} overlayOptions={Object {}} rootNode={} stopPropagation={false} @@ -332,7 +329,6 @@ exports[`TearsheetSmall should override \`labels\` if button label property prov focusTrap={true} focusTrapOptions={Object {}} hasOverlay={true} - initialFocus={null} overlayOptions={Object {}} rootNode={} stopPropagation={false} diff --git a/src/components/__tests__/__snapshots__/public-api-test.js.snap b/src/components/__tests__/__snapshots__/public-api-test.js.snap index d40456e79..7eb55033a 100644 --- a/src/components/__tests__/__snapshots__/public-api-test.js.snap +++ b/src/components/__tests__/__snapshots__/public-api-test.js.snap @@ -1447,6 +1447,9 @@ Map { ], "type": "oneOfType", }, + "document": Object { + "type": "object", + }, "escapeDeactivates": Object { "args": Array [ Array [ @@ -7343,6 +7346,9 @@ Map { ], "type": "oneOfType", }, + "document": Object { + "type": "object", + }, "escapeDeactivates": Object { "args": Array [ Array [ @@ -7584,7 +7590,6 @@ Map { "focusTrap": true, "focusTrapOptions": Object {}, "hasOverlay": true, - "initialFocus": null, "onOverlayClick": undefined, "overlayOptions": Object {}, "rootNode": , @@ -7633,6 +7638,9 @@ Map { ], "type": "oneOfType", }, + "document": Object { + "type": "object", + }, "escapeDeactivates": Object { "args": Array [ Array [ diff --git a/yarn.lock b/yarn.lock index ecfffa589..ff0c042bd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9410,17 +9410,17 @@ focus-lock@^0.9.1: dependencies: tslib "^2.0.3" -focus-trap-react@^8.7.0: - version "8.7.1" - resolved "https://registry.yarnpkg.com/focus-trap-react/-/focus-trap-react-8.7.1.tgz#a9e4dc866db5e6794bdb751cad9ddc8989598ec5" - integrity sha512-1bCCtdZXSzYVrMEcvHfHq+706OSM5r3iZsBFXy9zbnf3+5dyCFiEVWix7Sf6jUaOgshjpyDvZHiBhSlcsO9k3A== +focus-trap-react@^8.8.1: + version "8.8.1" + resolved "https://registry.yarnpkg.com/focus-trap-react/-/focus-trap-react-8.8.1.tgz#2c7043e748460a191a1c7e2552e7c964f3f9fd46" + integrity sha512-Uy7U/l3fozlwLYBSQHP91QjuRUUcAQ9FJ3glAGmwF/fXSiPa/4negTy02zWElLZdZDPIfebC8V14aI1Gzc5V3w== dependencies: - focus-trap "^6.6.1" + focus-trap "^6.7.1" -focus-trap@^6.6.1: - version "6.6.1" - resolved "https://registry.yarnpkg.com/focus-trap/-/focus-trap-6.6.1.tgz#761ce2c82ddd72beeb049e968bc8414e25b704aa" - integrity sha512-x9BWuAeF5UrfWuYKJ3jYrjcVYSYptS9CqtxH5IH7lPlZrMsaugKeAa0HtoZSBZe5DmeTMx2m0qY464ZMzqarzw== +focus-trap@^6.7.1: + version "6.7.1" + resolved "https://registry.yarnpkg.com/focus-trap/-/focus-trap-6.7.1.tgz#d474f86dbaf3c7fbf0d53cf0b12295f4f4068d10" + integrity sha512-a6czHbT9twVpy2RpkWQA9vIgwQgB9Nx1PIxNNUxQT4nugG/3QibwxO+tWTh9i+zSY2SFiX4pnYhTaFaQF/6ZAg== dependencies: tabbable "^5.2.1"