Skip to content

Commit

Permalink
fix(select): display abnormal (#3418)
Browse files Browse the repository at this point in the history
  • Loading branch information
betavs authored Sep 25, 2023
1 parent 15d7ecd commit 8d40f0b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/select/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -341,12 +341,6 @@ export default defineComponent({
if (value) {
// 显示
hoverIndex.value = -1;
} else {
// 隐藏
// eslint-disable-next-line no-lonely-if
if (innerInputValue.value) {
setInputValue('');
}
}
});

Expand Down Expand Up @@ -471,6 +465,7 @@ export default defineComponent({
props.onBlur?.({ e, value: innerValue.value });
}}
onFocus={(inputValue, { e }) => {
setInputValue('');
props.onFocus?.({ e, value: innerValue.value });
}}
{...(props.selectInputProps as TdSelectProps['selectInputProps'])}
Expand Down

0 comments on commit 8d40f0b

Please sign in to comment.