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

disabled doesn't work for selectInput #186

Closed
nbbn opened this issue Jun 27, 2019 · 1 comment
Closed

disabled doesn't work for selectInput #186

nbbn opened this issue Jun 27, 2019 · 1 comment

Comments

@nbbn
Copy link

nbbn commented Jun 27, 2019

Hi,
let's have shiny app:

library(shiny)
library(shinyjs)

ui <- fluidPage(
  useShinyjs(),
  shinyjs::disabled(selectInput(
          inputId = 'asdadasd',
          label = 'test',
          choices = c('asd','asda','asdadasd'),
          selected = c('asd','asda','asdadasd'),
          multiple = TRUE,
          selectize = FALSE
        ))
)

server <- function(input, output) {
}

shinyApp(ui = ui, server = server)

What I get is:
image

I would like to have disabled select element, not div (this disabled=disabled is not propagated to children of element).
I report it as bug, because I believe hat it should be smartly applied to div and children (e.g. select) or to select at least.

@daattali
Copy link
Owner

Fixed

mjhelf added a commit to mjhelf/shinyjs that referenced this issue Jul 18, 2019
Update from daatali/shinyjs.. non-selectize select inputs could not be disabled; fixes daattali#186
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