-
Notifications
You must be signed in to change notification settings - Fork 300
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
Initially Collapsed Box Fails to Render Content when Expanded #42
Comments
Just ran into the same problem and had to revert to version 0.3.1 because of this :-( |
This sounds like maybe just a shown or hidden event needs to be triggered? |
Yup, it just needed those events to be triggered. For future reference, here's a streamlined test app: library(shiny)
library(shinydashboard)
ui <- dashboardPage(
dashboardHeader(),
dashboardSidebar(
sidebarMenu(
menuItem("Inputs", icon = icon("bar-chart-o"), tabName = "tabOne"
)
)
),
dashboardBody(
tabItems(
tabItem("tabOne",
box(title = "Test Box One",
status = "success",
solidHeader = TRUE,
collapsible = TRUE,
collapsed = TRUE,
plotOutput("plot", height = 250),
verbatimTextOutput("boxOneText")
),
box(
actionButton("go", "Go")
)
)
)
)
)
server <- function(input, output) {
output$plot <- renderPlot({
cat(paste("plotting", input$go, "\n"))
plot(rnorm(1 + input$go), rnorm(1 + input$go))
})
output$boxOneText <- renderText({
paste("Go counter:", input$go)
})
}
shinyApp(ui, server) |
@wch Is there any function to update the status of collapse? something like updateTabsetPanel? I'm open to alternatives too. server.R observeEvent(input$dt_summary_cell_clicked,{ ui.R isolate({ Let me know if more clarification is required. |
delete `interactive()` because tests are in Rignore add comments fix tabItems issue comment repro issues fix version, bump both package further ahead and make sure that rstudio#42 is not repro on my pc
delete `interactive()` because tests are in Rignore add comments fix tabItems issue comment repro issues fix version, bump both package further ahead and make sure that rstudio#42 is not repro on my pc
I have the same problem but when rendering on
|
If a box is collapsed on initial load, the content then fails to load when the box is subsequently expanded.
Example problem code:
However, the following code, with the box expanded on initial load, works fine and even after collapsing and expanding the box. The text continues to render:
The problem only seems to manifest itself when boxes are initially collapsed.
I have shinydashboard 0.40 installed.
The text was updated successfully, but these errors were encountered: