Skip to content

Commit e719db2

Browse files
committed
auto merge of #17247 : huonw/rust/toggle-clone, r=alexcrichton
This needs a clone otherwise each successive insertion detaches `toggle` from the previous position. Fixes #17125.
2 parents 12b757b + 0deb77d commit e719db2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/static/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@
762762

763763
$(".method").each(function() {
764764
if ($(this).next().is(".docblock")) {
765-
$(this).children().first().after(toggle[0]);
765+
$(this).children().first().after(toggle.clone());
766766
}
767767
});
768768

0 commit comments

Comments
 (0)