Skip to content

Commit

Permalink
Improve support for dropdowns with placeholders (#4060)
Browse files Browse the repository at this point in the history
Fixes #4053. Credit to @GinoPane
  • Loading branch information
GinoPane authored and LukeTowers committed Jan 27, 2019
1 parent 174f37b commit 3118660
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions modules/system/assets/ui/js/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
var placeholder = $element.data('placeholder')
if (placeholder) {
extraOptions.placeholder = placeholder
extraOptions.allowClear = true
}

$element.select2($.extend({}, selectOptions, extraOptions))
Expand Down
3 changes: 2 additions & 1 deletion modules/system/assets/ui/storm-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3118660

Please sign in to comment.