Skip to content

Commit 29c4847

Browse files
committed
hide the prior element, not the new element
1 parent 229e564 commit 29c4847

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/www/shared/shiny-showcase.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
if (above) {
192192
$(document.body).animate({ scrollTop: 0 }, animateCodeMs);
193193
}
194-
$(newHostElement).hide();
194+
$(currentHostElement).hide();
195195
isCodeAbove = above;
196196
setAppCodeSxsWidths(above && animate);
197197
$(window).trigger("resize");

0 commit comments

Comments
 (0)