Skip to content

Commit caea1ac

Browse files
authored
fix(select): click on the selected item can deselect (#2920)
1 parent ad6b5ae commit caea1ac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/vc-select/Select.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,11 @@ const Select = {
482482
}
483483
return;
484484
}
485+
486+
if (domEvent.type === 'click') {
487+
this.removeSelected(getValuePropValue(item));
488+
}
489+
485490
if (this.autoClearSearchValue) {
486491
this.setInputValue('');
487492
}

0 commit comments

Comments
 (0)