From https://github.com/rstudio/shiny/pull/3861... `input_switch` and friends should include a class as well to follow pattern.