The vanilla shiny::selectInput
drop-down selector fails to preserve the order of its initial value, as documented here. That same problem also affects bookmark restoration. And we care about bookmarks1.
So, to alleviate this problem, we’ve written OrderedSelectInput. It’s a simple drop-in replacement that should allow you to address this issue in your projects by substituting calls to shiny::selectInput
with OrderedSelectInput
.
1
And by “bookmarks”, we mean state.