shadcn-ui / ui

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
https://ui.shadcn.com
MIT License
70.83k stars 4.26k forks source link

Dropdown result not stick to input #4104

Closed tegarmonster closed 3 months ago

tegarmonster commented 3 months ago

Describe the bug

Hi, I have an combination between Sheet component with custom Google place autocomplete component,

image

but, the issue show when I typing the destination on input component, the dropdown result not stick to the input like this

image

why this happen?. and how to fix it? thanks

Affected component/components

Sheet

How to reproduce

  1. add Sheet component,
  2. add custom Google auto complete component,
  3. typing random destination place and then the issue show.

Codesandbox/StackBlitz link

No response

Logs

No response

System Info

Chrome browser

Before submitting

tegarmonster commented 3 months ago

additional info, If i put my Google place autocomplete component to another place (not in Sheet component) the dropdown result stick to input

image
tegarmonster commented 3 months ago

the issue was caused by SheetOverlay over here

image

if I comment that line, the dropdown stick to input again