Skip to content

Commit

Permalink
chore: fix if
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn committed Oct 31, 2023
1 parent 24a1e76 commit 20499fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/select/hooks/useKeyboardControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,11 @@ export default function useKeyboardControl({
};

watch(innerPopupVisible, (value) => {
if (value)
if (value) {
// 展开重新恢复初始值
hoverIndex.value = -1;
virtualFilteredOptions.value = [];
virtualFilteredOptions.value = [];
}
});

// 处理键盘操作滚动 超出视图时继续自动滚动到键盘所在元素
Expand Down

0 comments on commit 20499fe

Please sign in to comment.