-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Feature Request]: Disable select input when there are no choices #324
Labels
Comments
3 tasks
Thanks @averissimo , can you make a PR for this since you have the POC branch already? thanks |
Created here @danielinteractive there's a possible simplification that doesn't need any custom message, but adds a dependency to the package. Please keep that in mind when reviewing the PR |
averissimo
added a commit
that referenced
this issue
Sep 12, 2023
# Pull Request Fixes #324 ### Possible simplification: Use of `shinyjs::enable()`/`shinyjs::disable()` would remove the custom message handler with the caveat of adding a dependency to the package. ### Changes description * Use of `selectizeInput` instead of `selectizeInput` * Adds placeholder to `adtteSpecInput`, `assaySpecInput` & `geneSpec` * Harcoded string: `- Nothing selected -` * Uses JS to disable / enable the dropdown * note: the message handler can be run multiple times, but it will only re-define the function per [Shiny documentation](https://github.com/rstudio/shiny/blob/eddc3047d4e1fd500bdb128f5c02109afa12d948/srcts/src/shiny/shinyapp.ts#L86C17-L86C73)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature description
The select inputs from
assaySpec
would improve from being disabled with a placeholder when they have no choices.For example on the Barplot (or KM module) of the RNA-Seq app app it has a weird behaviour when trying click on the dropdown (see below).
There are some options to implement this
shinyjs::disable/enable
when there are no choicesshinyWidgets::virtualSelectInput
(already a dependency) that has adisabled
parameterProof of concept
Click to expand possible patch
Screencast of issue
Screencast.from.2023-08-04.12-54-03.webm
The text was updated successfully, but these errors were encountered: