Skip to content

Commit db170aa

Browse files
Scaladoc: Fix expand icon not changing on anchor link (#17053)
i.e. this: ![Peek 2023-03-06 16-56](https://user-images.githubusercontent.com/39772805/223163382-e2bd9b6c-68de-49ba-8bb7-d14507a0a454.gif)
2 parents 3b99733 + a301769 commit db170aa

File tree

1 file changed

+4
-0
lines changed
  • scaladoc/resources/dotty_res/scripts

1 file changed

+4
-0
lines changed

scaladoc/resources/dotty_res/scripts/ux.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,10 @@ document
309309
var selected = document.getElementById(location.hash.substring(1));
310310
if (selected) {
311311
selected.classList.toggle("expand");
312+
selected.classList.toggle("expanded");
313+
const btn = selected.querySelector(".icon-button");
314+
btn.classList.toggle("expand");
315+
btn.classList.toggle("expanded");
312316
}
313317
}
314318
}

0 commit comments

Comments
 (0)