@wistia/ui 0.18.14-beta.765a7c90.412f086 → 0.18.14-beta.cfcb41da.a0c17d8
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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.18.14-beta.
|
|
3
|
+
* @license @wistia/ui v0.18.14-beta.cfcb41da.a0c17d8
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -10365,9 +10365,9 @@ var isClickableElement = (element) => {
|
|
|
10365
10365
|
};
|
|
10366
10366
|
var ClickRegion = ({ children, targetRef }) => {
|
|
10367
10367
|
(0, import_react39.useEffect)(() => {
|
|
10368
|
-
if (targetRef.current
|
|
10368
|
+
if (targetRef.current && targetRef.current.tagName === "A") {
|
|
10369
10369
|
targetRef.current.setAttribute("data-click-region-target-link", "");
|
|
10370
|
-
} else if (targetRef.current
|
|
10370
|
+
} else if (targetRef.current && targetRef.current.tagName === "BUTTON") {
|
|
10371
10371
|
targetRef.current.setAttribute("data-click-region-target-button", "");
|
|
10372
10372
|
} else {
|
|
10373
10373
|
}
|