Skip to content

Commit

Permalink
Addressing issue Choices-js#253
Browse files Browse the repository at this point in the history
  • Loading branch information
maximmig committed Sep 19, 2017
1 parent 721441f commit 5985505
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/scripts/dist/choices.js

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

2 changes: 1 addition & 1 deletion src/scripts/dist/choices.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/scripts/dist/choices.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/scripts/src/choices.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ class Choices {
if (this.isSelectOneElement) {
return choice.groupId === group.id;
}
return choice.groupId === group.id && !choice.selected;
return choice.groupId === group.id && (this.config.renderSelectedChoices === 'always' || !choice.selected);
});

if (groupChoices.length >= 1) {
Expand Down

0 comments on commit 5985505

Please sign in to comment.