Skip to content

Commit

Permalink
Fix menu placement when menu is css-transformed
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwede committed Nov 30, 2022
1 parent 5f52869 commit 8c59f90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react-select/src/components/Menu.tsx
Expand Up @@ -77,9 +77,11 @@ export function getMenuPlacement({
const { height: scrollHeight } = scrollParent.getBoundingClientRect();
const {
bottom: menuBottom,
height: menuHeight,
height: menuHeightBoundingRect,
top: menuTop,
} = menuEl.getBoundingClientRect();
const menuHeight = menuEl.style.transform ? menuEl.offsetHeight : menuHeightBoundingRect;


const { top: containerTop } = menuEl.offsetParent.getBoundingClientRect();
const viewHeight = isFixedPosition
Expand Down

0 comments on commit 8c59f90

Please sign in to comment.