fix(select): click on the selected item can deselect (#2920)

pull/2927/head
John60676 2020-09-29 18:30:39 +08:00 committed by GitHub
parent ad6b5ae520
commit caea1acfbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -482,6 +482,11 @@ const Select = {
}
return;
}
if (domEvent.type === 'click') {
this.removeSelected(getValuePropValue(item));
}
if (this.autoClearSearchValue) {
this.setInputValue('');
}