We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 653b02c commit b958ff9Copy full SHA for b958ff9
web/dropdown.ts
@@ -172,7 +172,8 @@ class Dropdown {
172
*/
173
public unselectOption(value: string) {
174
const optionIndex = this.options.findIndex((option) => value === option.value);
175
- if (this.multipleAllowed && optionIndex > -1 && (this.optionsSelected[0] || this.optionsSelected[optionIndex])) {
+ if (optionIndex < 0 && (this.optionsSelected[0] || this.optionsSelected[optionIndex])) return;
176
+ if (this.multipleAllowed || this.selectMultipleWithCtrl) {
177
if (this.optionsSelected[0]) {
178
// Show All is currently selected, so unselect it, and select all branch options
179
this.optionsSelected[0] = false;
0 commit comments