Skip to content

Commit 4e5c5f9

Browse files
committed
Move the shiny:conditional event to the top of $updateConditionals()
1 parent 1ee2a25 commit 4e5c5f9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

srcjs/shinyapp.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,10 @@ var ShinyApp = function() {
283283
};
284284

285285
this.$updateConditionals = function() {
286+
$(document).trigger({
287+
type: 'shiny:conditional'
288+
});
289+
286290
var inputs = {};
287291

288292
// Input keys use "name:type" format; we don't want the user to
@@ -310,10 +314,6 @@ var ShinyApp = function() {
310314
var show = condFunc(scope);
311315
var showing = el.css("display") !== "none";
312316
if (show !== showing) {
313-
el.trigger({
314-
type: 'shiny:conditional',
315-
show: show
316-
});
317317
if (show) {
318318
el.trigger('show');
319319
el.show();

0 commit comments

Comments
 (0)