@deque/cauldron-react 6.4.0-canary.82f43f21 → 6.4.0-canary.cdbae48c

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.
Files changed (2) hide show
  1. package/lib/index.js +2 -6
  2. 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
- setTimeout(function () {
2562
- var _a;
2563
- return (_a = overlayRef.current) === null || _a === void 0 ? void 0 : _a.focus();
2564
- });
2561
+ overlayRef.current.focus();
2565
2562
  }
2566
- return;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-react",
3
- "version": "6.4.0-canary.82f43f21",
3
+ "version": "6.4.0-canary.cdbae48c",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Fully accessible react components library for Deque Cauldron",
6
6
  "homepage": "https://cauldron.dequelabs.com/",