Skip to content

Commit aa6e67d

Browse files
committed
stop propagating the click event into the parent
1 parent e5ed69e commit aa6e67d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/spa.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ rdapValidator.setResultCallback(function(result, message, path, ref) {
156156

157157
a.appendChild(document.createTextNode("📖"));
158158

159+
a.addEventListener("click", (e) => e.stopPropagation());
160+
159161
a.setAttribute("href", ref);
160162
a.setAttribute("target", "_blank");
161163
a.setAttribute("title", "Open link to specification in a new window");

0 commit comments

Comments
 (0)