@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.mjs
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
|
*
|
|
@@ -10184,9 +10184,9 @@ var isClickableElement = (element) => {
|
|
|
10184
10184
|
};
|
|
10185
10185
|
var ClickRegion = ({ children, targetRef }) => {
|
|
10186
10186
|
useEffect9(() => {
|
|
10187
|
-
if (targetRef.current
|
|
10187
|
+
if (targetRef.current && targetRef.current.tagName === "A") {
|
|
10188
10188
|
targetRef.current.setAttribute("data-click-region-target-link", "");
|
|
10189
|
-
} else if (targetRef.current
|
|
10189
|
+
} else if (targetRef.current && targetRef.current.tagName === "BUTTON") {
|
|
10190
10190
|
targetRef.current.setAttribute("data-click-region-target-button", "");
|
|
10191
10191
|
} else {
|
|
10192
10192
|
}
|