Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
simonsteiger opened this issue Jan 21, 2023 · 2 comments
Closed

Comments

@simonsteiger
Copy link

simonsteiger commented Jan 21, 2023

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)
@simonsteiger simonsteiger changed the title verticalTabset only displaying first tab's content in bootstrap 5 verticalTabset only displaying first tab's content in bootstrap 5 Jan 21, 2023
@pvictor
Copy link
Member

pvictor commented Jan 23, 2023

Thanks for reporting this.
Try re-installing from GitHub and let me know how it works for you.

Victor

@simonsteiger
Copy link
Author

Works perfectly, thanks a lot for the quick reply and fix!

Simon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants