Skip to content

Commit fd39075

Browse files
committed
Restore ability to dynamically set selectInput labels. Closes rstudio#741
1 parent 221a233 commit fd39075

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

inst/www/shared/shiny.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2327,7 +2327,7 @@
23272327
this.setValue(el, data.value);
23282328

23292329
if (data.hasOwnProperty('label'))
2330-
$(el).parent().find('label[for="' + $escape(el.id) + '"]').text(data.label);
2330+
$(el).parent().parent().find('label[for="' + $escape(el.id) + '"]').text(data.label);
23312331

23322332
$(el).trigger('change');
23332333
},

0 commit comments

Comments
 (0)