Fix clicking on anchors inside summary tags.
This commit is contained in:
parent
c6a7ca196a
commit
04cb0dc8a9
2 changed files with 5 additions and 1 deletions
|
|
@ -888,7 +888,7 @@ function hideThemeButtonState() {
|
|||
|
||||
onEachLazy(document.querySelectorAll(".rustdoc-toggle > summary:not(.hideme)"), function(el) {
|
||||
el.addEventListener("click", function(e) {
|
||||
if (e.target.tagName != "SUMMARY") {
|
||||
if (e.target.tagName != "SUMMARY" && e.target.tagName != "A") {
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue