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:
ahmedobaid23
2025-08-19 10:21:52 +02:00
committed by GitHub
parent b5394f6ba6
commit 76115309fa
@@ -35,8 +35,8 @@ export const SelectableListItem = ({
useEffect(() => {
if (isSelectedItemId) {
listItemRef.current?.scrollIntoView({
behavior: 'smooth',
block: 'center',
behavior: 'auto',
block: 'start',
});
}
}, [isSelectedItemId]);