@wistia/vhs 5.0.2-beta.e1e49f87.952d3b3 → 5.0.2-beta.ebaaa703.78fffe2
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.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/vhs v5.0.2-beta.
|
|
3
|
+
* @license @wistia/vhs v5.0.2-beta.ebaaa703.78fffe2
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2021-2026, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -3731,11 +3731,11 @@ const useFocusTrap = (active = true, options = {}) => {
|
|
|
3731
3731
|
if (!focusElement && isFocusableElement(node2)) focusElement = node2;
|
|
3732
3732
|
}
|
|
3733
3733
|
if (focusElement) focusElement.focus();
|
|
3734
|
-
if (!focusElement &&
|
|
3734
|
+
if (!focusElement && process.env["NODE_ENV"] === "development") console.warn("[useFocusTrap]: Failed to find a focusable element after activating the focus trap. Make sure to include at an element that can recieve focus. As a fallback, you can also set \"tabIndex={-1}\" on the focus trap node.", node2);
|
|
3735
3735
|
};
|
|
3736
3736
|
setTimeout(() => {
|
|
3737
3737
|
if (node.ownerDocument) processNode(node);
|
|
3738
|
-
if (!node.ownerDocument &&
|
|
3738
|
+
if (!node.ownerDocument && process.env["NODE_ENV"] === "development") console.warn("[useFocusTrap]: The focus trap is not part of the DOM yet, so it is unable to correctly set focus. Make sure to render the ref node.", node);
|
|
3739
3739
|
});
|
|
3740
3740
|
ref.current = node;
|
|
3741
3741
|
} else ref.current = null;
|