mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-21 06:56:34 +02:00
Addressing issue #253
This commit is contained in:
parent
020905676a
commit
955716d846
|
@ -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`.
|
||||
|
||||
|
|
2
src/scripts/dist/choices.js
vendored
2
src/scripts/dist/choices.js
vendored
|
@ -428,7 +428,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
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) {
|
||||
|
|
2
src/scripts/dist/choices.js.map
vendored
2
src/scripts/dist/choices.js.map
vendored
File diff suppressed because one or more lines are too long
6
src/scripts/dist/choices.min.js
vendored
6
src/scripts/dist/choices.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue