rustdoc: clicking a link inside the help popover does not work #106390
Labels
A-rustdoc-ui
Area: Rustdoc UI (generated HTML)
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Steps to reproduce the issue:
Expected result: I am able to follow the anchor link, and the tab is redirected to the https://doc.rust-lang.org/rustdoc/ site
Actual result: nothing happens
It looks like the issue is happening due to L1043-L1045 in
src/librustdoc/html/static/js/main.js
:Where
container
is the popover<div>
element, which the click event on the child<a>
element bubbles up to. I tested deleting this event listener directly within the browser and it appears to fix the issue.I don't think deleting this event listener would cause any regressions because there is already no default behavior when you click on a plain
<div>
. However, I'm not sure what the full context was around adding this event listener in the first place.The text was updated successfully, but these errors were encountered: