Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

tippy: Add patch to avoid text Node as target in Firefox.

Aman Agrawal2b33a5af8389
diff --git a/package.json b/package.json
index f3cb99f2eff..8828c28f081 100644
--- a/package.json
+++ b/package.json
@@ -158,7 +158,8 @@
},
"patchedDependencies": {
}
},
"nyc": {
diff --git a/patches/[email protected] b/patches/[email protected]
new file mode 100644
index 00000000000..106aa9409b6
--- /dev/null
+++ b/patches/[email protected]
@@ -0,0 +1,13 @@
+diff --git a/dist/tippy.esm.js b/dist/tippy.esm.js
+index 55346f57874b0af79fec3b6f9f0253f9d55bfee2..c7a4e1549dcc3e1815c908825d914d44467e60f3 100644
+--- a/dist/tippy.esm.js
++++ b/dist/tippy.esm.js
+@@ -1907,7 +1907,7 @@
+ var normalizedReturnValue = normalizeToArray(returnValue);
+
+ function onTrigger(event) {
+- if (!event.target || disabled) {
++ if (!isElement(event.target) || disabled) {
+ return;
+ }
+
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 607684e9155..4fdbd744acc 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -14,6 +14,9 @@ patchedDependencies:
hash: 4n7ij66tzyhzaqnxsenbilrxr4
path: patches/[email protected]
+ hash: mlbmk5pq4q6iuwarqu6solgeeq
+ path: patches/[email protected]
importers:
@@ -243,7 +246,7 @@ importers:
version: 4.1.1
tippy.js:
specifier: ^6.3.7
- version: 6.3.7
+ version: 6.3.7(patch_hash=mlbmk5pq4q6iuwarqu6solgeeq)
turndown:
specifier: ^7.0.0
version: 7.2.0
@@ -15105,7 +15108,7 @@ snapshots:
+ [email protected](patch_hash=mlbmk5pq4q6iuwarqu6solgeeq):
dependencies:
'@popperjs/core': 2.11.8