Skip to content

Commit 6c254ed

Browse files
committed
rustdoc: allow popover child links to work
No need to prevent default click behavior on a <div>, it will also disable all child click behavior.
1 parent d6f99e5 commit 6c254ed

File tree

1 file changed

+0
-3
lines changed
  • src/librustdoc/html/static/js

1 file changed

+0
-3
lines changed

src/librustdoc/html/static/js/main.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,9 +1040,6 @@ function loadCss(cssUrl) {
10401040
help_button.appendChild(container);
10411041

10421042
container.onblur = helpBlurHandler;
1043-
container.onclick = event => {
1044-
event.preventDefault();
1045-
};
10461043
help_button.onblur = helpBlurHandler;
10471044
help_button.children[0].onblur = helpBlurHandler;
10481045
}

0 commit comments

Comments
 (0)