Skip to content

Commit

Permalink
Merge pull request #2 from daattali/master
Browse files Browse the repository at this point in the history
Update from daatali/shinyjs.. non-selectize select inputs could not be disabled; fixes daattali#186
  • Loading branch information
mjhelf authored Jul 18, 2019
2 parents 138a813 + a77d96a commit 8d51659
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: shinyjs
Title: Easily Improve the User Experience of Your Shiny Apps in Seconds
Version: 1.0.1.9004
Version: 1.0.1.9005
Authors@R: person("Dean", "Attali", email = "[email protected]",
role = c("aut", "cre"))
Description: Perform common useful JavaScript operations in Shiny apps that will
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Add `asis` parameter to any function that takes an ID. When `asis=TRUE`, the ID will not be namespaced when inside a module (#118)
- **BREAKING CHANGE** The `includeShinyjs` parameter in `runcodeUI()` is now deprecated
- Fix bug: shinyjs functions did not work with IDs that had a space in them; fixes #176
- Fix bug #186: non-selectize select inputs could not be disabled

# shinyjs 1.0

Expand Down
2 changes: 1 addition & 1 deletion inst/srcjs/shinyjs-default-funcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ shinyjs = function() {

// enable/disable the container as well as all individual inputs inside
// (this is needed for grouped inputs such as radio and checkbox groups)
var toadd = $el.find("input, button, textarea");
var toadd = $el.find("input, button, textarea, select");
$el = $($el.toArray().concat(toadd.toArray()));
$el.attr('disabled', (method == "disable"));
$el.prop('disabled', (method == "disable"));
Expand Down

0 comments on commit 8d51659

Please sign in to comment.