fix(select): click on the selected item can deselect (#2920)
parent
ad6b5ae520
commit
caea1acfbe
|
@ -482,6 +482,11 @@ const Select = {
|
|||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (domEvent.type === 'click') {
|
||||
this.removeSelected(getValuePropValue(item));
|
||||
}
|
||||
|
||||
if (this.autoClearSearchValue) {
|
||||
this.setInputValue('');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue