Skip to content

Commit 63d4ace

Browse files
authored
Readd pre DOM check (#1075)
* Guess this is needed. Applies to #904 and #1062
1 parent 94bc803 commit 63d4ace

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

views/includes/scripts/tableTrLinkScript.html

+9-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,16 @@
55
var anchor = null;
66
var url = null;
77

8-
// Traverse up the DOM to find the container tr tag
8+
switch (container.nodeName) {
9+
case 'A':
10+
// fallthrough
11+
case 'INPUT':
12+
return;
13+
}
14+
15+
// Traverse up the DOM to find the container tr tag or a tag
916
while (!container.classList.contains('tr-link')) {
10-
if (!(container = container.parentNode)) {
17+
if (!(container = container.parentNode) || container.nodeName === 'A') {
1118
return;
1219
}
1320
}

0 commit comments

Comments
 (0)