Skip to content

verticalTabset only displaying first tab's content in bootstrap 5 #570

@simonsteiger

Description

@simonsteiger

Hello,

verticalTabsetPanel is only displaying outputs in the first tab panel when using bootstrap version 5. Other tab panels appear empty. The content is displayed properly in bootstrap version 3.

Package versions:
shiny 1.7.4
shinyWidgets 0.7.6
bslib 0.4.2

library(shiny)
library(shinyWidgets)
library(bslib)

ui <- fluidPage(
  theme = bs_theme(version = 5),
  verticalTabsetPanel(
    verticalTabPanel("tab 1", textOutput("text1")),
    verticalTabPanel("tab 2", textOutput("text2"))
  )
)

server <- function(input, output, session) {
  output$text1 <- renderText("one")
  output$text2 <- renderText("two")
}

shinyApp(ui, server)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions