Navbarpage default selection pointing wrongly

Hi all,

In navbar page, as per the documentation given , the selected paratmeter will point to the tab mentioned. In the below code, "Summary" is selected as default.
But if open the application and click on "Table" tab and then close the application. Next time when I open it, the default selection will be "Table" and not "Summary"

if (interactive()) {
  
  ui <- fluidPage(
    navbarPage("App Title",
               tabPanel("Plot"),
               tabPanel("Summary"),
               tabPanel("Table"),
               selected = "Summary"
    )
  )
  
  server <- function(input, output, session) {
    
  }
  
  shinyApp(ui, server)
}

I can't reproduce this.

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.