Focus in Navbar Panels

I've created a Shiny app with Navbar panels, and would like the focus on the first input when a tab is selected. Is that possible?

Manipulating focus seems to me like it would involve JavaScript. Perhaps shinyjs library would be useful.

Maybe something like onclick the tab id?

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

Yes, I looked in shinyjs. Found the action, but not the hook.