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 0209056 commit 955716d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ const example = new Choices(element, {
### renderSelectedChoices
**Type:** `String` **Default:** `auto`
**Input types affected:** `select-one`, `select-multiple`
**Input types affected:** `select-multiple`
**Usage:** Whether selected choices should be removed from the list. By default choices are removed when they are selected in multiple select box. To always render choices pass `always`.
Expand Down
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 955716d

Please sign in to comment.