Skip to content

Commit e305720

Browse files
committed
fix: sometimes scroll fails
1 parent 674b154 commit e305720

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

packages/components/select/hooks/useKeyboardControl.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,8 @@ export default function useKeyboardControl({
5555
if (firstSelectedNode) {
5656
// 小于0时不需要特殊处理,会被设为0
5757
const scrollHeight = popupContent.querySelector(optionSelector).clientHeight * hoverIndex;
58-
5958
popupContent.scrollTo({
6059
top: scrollHeight,
61-
behavior: 'smooth',
6260
});
6361
}
6462
};

0 commit comments

Comments
 (0)