@wistia/vhs 5.0.2-beta.a4e799bc.91b0a49 → 5.0.2-beta.b6e151f4.a18f2db
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 +3 -3
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.b6e151f4.a18f2db
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2021-2026, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -4226,7 +4226,7 @@ var useFocusTrap = (active = true, options = {}) => {
|
|
|
4226
4226
|
if (focusElement2) {
|
|
4227
4227
|
focusElement2.focus();
|
|
4228
4228
|
}
|
|
4229
|
-
if (!focusElement2 &&
|
|
4229
|
+
if (!focusElement2 && import.meta.env.DEV) {
|
|
4230
4230
|
console.warn(
|
|
4231
4231
|
'[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.',
|
|
4232
4232
|
node2
|
|
@@ -4237,7 +4237,7 @@ var useFocusTrap = (active = true, options = {}) => {
|
|
|
4237
4237
|
if (node.ownerDocument) {
|
|
4238
4238
|
processNode(node);
|
|
4239
4239
|
}
|
|
4240
|
-
if (!node.ownerDocument &&
|
|
4240
|
+
if (!node.ownerDocument && import.meta.env.DEV) {
|
|
4241
4241
|
console.warn(
|
|
4242
4242
|
"[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.",
|
|
4243
4243
|
node
|