Skip to content

Commit bb1af17

Browse files
fix(js): vertically offset panel based on offsetTop
1 parent fd62c5e commit bb1af17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/autocomplete-js/src/getPanelPositionStyle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function getPanelPositionStyle({
1515
environment = window,
1616
}: GetPanelPositionStyleParams) {
1717
const containerRect = container.getBoundingClientRect();
18-
const top = containerRect.top + containerRect.height;
18+
const top = container.offsetTop + containerRect.height;
1919

2020
switch (panelPlacement) {
2121
case 'start': {

0 commit comments

Comments
 (0)