@thecb/components 7.0.0-beta.5 → 7.0.0-beta.6
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.cjs.js
CHANGED
|
@@ -43297,6 +43297,8 @@ var getApplicationNode = function getApplicationNode() {
|
|
|
43297
43297
|
};
|
|
43298
43298
|
|
|
43299
43299
|
var Modal$1 = function Modal(_ref) {
|
|
43300
|
+
var _ref2, _ref3;
|
|
43301
|
+
|
|
43300
43302
|
var hideModal = _ref.hideModal,
|
|
43301
43303
|
_ref$onExit = _ref.onExit,
|
|
43302
43304
|
onExit = _ref$onExit === void 0 ? hideModal : _ref$onExit,
|
|
@@ -43341,10 +43343,10 @@ var Modal$1 = function Modal(_ref) {
|
|
|
43341
43343
|
var bodyTextContainerRef = React.useRef(null);
|
|
43342
43344
|
debugger;
|
|
43343
43345
|
return /*#__PURE__*/React__default.createElement(React.Fragment, null, modalOpen && /*#__PURE__*/React__default.createElement(reactAriaModal, {
|
|
43344
|
-
initialFocus: closeBtnRef !== null && closeBtnRef !== void 0 ? closeBtnRef : bodyTextContainerRef,
|
|
43346
|
+
initialFocus: (_ref2 = closeBtnRef !== null && closeBtnRef !== void 0 ? closeBtnRef : bodyTextContainerRef) !== null && _ref2 !== void 0 ? _ref2 : '#root',
|
|
43345
43347
|
focusTrapOptions: {
|
|
43346
43348
|
delayInitialFocus: false,
|
|
43347
|
-
fallbackFocus: closeBtnRef !== null && closeBtnRef !== void 0 ? closeBtnRef : bodyTextContainerRef
|
|
43349
|
+
fallbackFocus: (_ref3 = closeBtnRef !== null && closeBtnRef !== void 0 ? closeBtnRef : bodyTextContainerRef) !== null && _ref3 !== void 0 ? _ref3 : '#root'
|
|
43348
43350
|
} // fallback to resolve unit test errors https://github.com/focus-trap/focus-trap-react/issues/91
|
|
43349
43351
|
,
|
|
43350
43352
|
onExit: onExit,
|