@deque/cauldron-react 6.4.0-canary.82f43f21 → 6.4.0-canary.fc280bd3
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/lib/index.js +2 -6
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -2558,13 +2558,9 @@ var LoaderOverlay = React.forwardRef(function (_a, ref) {
|
|
|
2558
2558
|
}, [focusTrap, overlayRef.current]);
|
|
2559
2559
|
React.useEffect(function () {
|
|
2560
2560
|
if (!!focusOnInitialRender && overlayRef.current) {
|
|
2561
|
-
|
|
2562
|
-
var _a;
|
|
2563
|
-
return (_a = overlayRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
2564
|
-
});
|
|
2561
|
+
overlayRef.current.focus();
|
|
2565
2562
|
}
|
|
2566
|
-
|
|
2567
|
-
}, [overlayRef.current]);
|
|
2563
|
+
}, []);
|
|
2568
2564
|
var Wrapper = focusTrap ? FocusTrap__default["default"] : React__default["default"].Fragment;
|
|
2569
2565
|
var wrapperProps = focusTrap
|
|
2570
2566
|
? {
|
package/package.json
CHANGED