-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Reproducible example
shinyApp(
ui = bootstrapPage(
shiny.react:::ReactContext(
tabsetPanel(
id = "tabset",
selected = "tab2",
tabPanel("tab1", "Tab 1"),
tabPanel("tab2", "Tab 2")
)
)
),
server = function(input, output) {
observe(dput(input$tabset))
}
)Problems
- After initially loading the app, no tab is selected. Removing
selected = "tab2"doesn't change this. - It is possible to click on the tab to select it, but it won't be sent to the server (
input$tabsetisNULL).
Expected behavior
The app should behave as it would if we replaced shiny.react:::ReactContext() with div():
- The tab passed as
selectedargument should be actually selected when the application is initially loaded. - The currently selected tab should be available on the server as
input$tabset.
Notes
Replacing shiny.react:::ReactContext() with shiny.react:::ShinyBindingWrapper() seems to resolve problem (2).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels