We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75c3bf0 commit d63f83fCopy full SHA for d63f83f
inst/www/shared/shiny.js
@@ -1998,6 +1998,13 @@
1998
if (selectize) {
1999
selectize = selectize[0].selectize;
2000
selectize.clearOptions();
2001
+ // Selectize.js doesn't maintain insertion order on Chrome on Mac
2002
+ // with >10 items if inserted using addOption (versus being present
2003
+ // in the DOM at selectize() time). Putting $order on each option
2004
+ // makes it work.
2005
+ $.each(data.options, function(i, opt) {
2006
+ opt.$order = i;
2007
+ });
2008
selectize.addOption(data.options);
2009
}
2010
for (var i = 0; i < data.options.length; i++) {
0 commit comments