Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Commit

Permalink
Fix first selection bug
Browse files Browse the repository at this point in the history
  • Loading branch information
j8seangel committed Oct 26, 2017
1 parent 7665d20 commit 3644fad
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ define(

renderOptions: function(options, placeholder) {
this.filter.options = options;
var selected = _.filter(options, function(option) {
return option.selected;
});
this.selection = _.map(selected, function(select) {
return select.value + '';
});
this.selectAllEl.prop('disabled', !options.length);
this.optionsContainer.html(
this.optionsTemplate({
Expand Down

0 comments on commit 3644fad

Please sign in to comment.