@thecb/components 7.0.0-beta.0 → 7.0.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js
CHANGED
|
@@ -43329,8 +43329,14 @@ var Modal$1 = function Modal(_ref) {
|
|
|
43329
43329
|
var _useContext = useContext(ThemeContext),
|
|
43330
43330
|
isMobile = _useContext.isMobile;
|
|
43331
43331
|
|
|
43332
|
-
|
|
43333
|
-
|
|
43332
|
+
var modalContainerRef = useRef(null);
|
|
43333
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
43334
|
+
ref: modalContainerRef
|
|
43335
|
+
}, modalOpen && /*#__PURE__*/React.createElement(reactAriaModal // fallback to resolve Jest unit test errors when tabbable doesn't exist in jsdom https://github.com/focus-trap/focus-trap-react/issues/91
|
|
43336
|
+
, {
|
|
43337
|
+
focusTrapOptions: {
|
|
43338
|
+
fallbackFocus: modalContainerRef === null || modalContainerRef === void 0 ? void 0 : modalContainerRef.current
|
|
43339
|
+
},
|
|
43334
43340
|
onExit: onExit,
|
|
43335
43341
|
getApplicationNode: getApplicationNode,
|
|
43336
43342
|
titleText: modalHeaderText,
|