fix: scroll to selected element without animation when dropdown opens (#13969)
Fixes #13957 ### Changes made - updated `scrollIntoView` options to `behavior: auto` and `block: start` in the `SelectableListItem.tsx` component. ### New behaviour https://github.com/user-attachments/assets/7e71e132-f6e3-4451-8ee0-fa59ae9edd67
This commit is contained in:
+2
-2
@@ -35,8 +35,8 @@ export const SelectableListItem = ({
|
||||
useEffect(() => {
|
||||
if (isSelectedItemId) {
|
||||
listItemRef.current?.scrollIntoView({
|
||||
behavior: 'smooth',
|
||||
block: 'center',
|
||||
behavior: 'auto',
|
||||
block: 'start',
|
||||
});
|
||||
}
|
||||
}, [isSelectedItemId]);
|
||||
|
||||
Reference in New Issue
Block a user