diff --git a/lib/src/Dropdown/Dropdown.tsx b/lib/src/Dropdown/Dropdown.tsx index aef661d7c..928698daa 100644 --- a/lib/src/Dropdown/Dropdown.tsx +++ b/lib/src/Dropdown/Dropdown.tsx @@ -355,7 +355,7 @@ export const Dropdown: React.FC = React.forwardRef( React.useEffect(() => { // scroll the focused item into view - getOptionsRef()?.[focusedIndex]?.scrollIntoView(false); + getOptionsRef()?.[focusedIndex]?.scrollIntoView?.(false); }, [focusedIndex, getOptionsRef]); return ( diff --git a/lib/src/Dropdown/dropdown.scss b/lib/src/Dropdown/dropdown.scss index 802d59ae3..1571ce31c 100644 --- a/lib/src/Dropdown/dropdown.scss +++ b/lib/src/Dropdown/dropdown.scss @@ -80,6 +80,7 @@ float: none; overflow: auto; z-index: $zindex-popover; + overscroll-behavior: contain; > p { margin: 0;