Skip to content

Commit a301769

Browse files
committed
Scaladoc: Fix expand icon not changing on anchor link
1 parent ce65296 commit a301769

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)