That is what I was thinking as well.

It seems we need to empty the existing selections before selecting the `selected` items in shiny.js.