Skip to content

Input value for sidebar() is opposite what it should be #600

Closed

Description

@cpsievert
library(shiny)

ui <- page_sidebar(
  "foo",
  sidebar = sidebar(id = "foo")
)

server <- function(input, output, session) {
  
  observe(print(input$foo))
  
}

shinyApp(ui, server)

Activity

  1. added a commit that references this issue on Jun 2, 2023
    d650c65
  2. gadenbuie commented on Jun 6, 2023

    @gadenbuie
    Member

    Thanks for catching and fixing this @cpsievert! I think it'd be worth refactoring the JavaScript to match the R/Python side where we prioritize the open rather than closed state. It's not immediately necessary thanks to your fix, but it would help us avoid bumping into this again in the future.

  3. github-actions commented on Aug 7, 2023

    @github-actions
    Contributor

    This issue has been automatically locked. If you have found a related problem, please open a new issue (with a reproducible example or feature request) and link to this issue.
    🙋 Need help? Connect with us on Discord or Posit Community.

  4. locked as resolved and limited conversation to collaborators on Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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