How do you initialise a ui.input_select so that all items are initially selected when multiple=True?
In my example belowdata.EQUIPMENT_TYPES is a Tuple[str, ...] but when I run my code sometimes I get all items selected, sometimes none and sometimes a subset. Setting multiple=False and passing a single item for selected= works fine, but not when both are (the same) tuple?
The only thing I can think of is to convert your tuple to a list and make sure that all the entries are strings, and not a combination of data types (e.g. integers, bool, etc).
I don't have the issue when I run it with selectize=True as all are selected by default when I run the code. I am running this on a Windows machine though.
However, rather than an operating system cause, maybe it's related to the shiny version. Are you using shiny 1.0+?
I'm not sure I know what the cause might be, but one thing I would suggest is that you open your project on another machine and see if it has the same issue. If not, then it's operating system dependent (if all package versions are the same), if it is, then there might be something else in your code messing with it.
Maybe someone else will chime in too, but that's all I can think of for now