Autocomplete is hidden behind overlay
See original GitHub issueDescribe the bug There are two separate issues here but I was able to reproduce them in the same CodeSandbox so I figured I would create just one issue.
- When I put an
AutoComplete
inside anOverlay
the autocomplete’s overlay goes behind the parentOverlay
. Is there a way to get around this or is this a bug? - The
Overlay
does not position based on theanchorRef
, it’s always in the top-left of the screen. This is reproducible in the docs actually.
To Reproduce Steps to reproduce the behavior:
- Go to this CodeSandbox
Expected behavior I would expect the AutoComplete’s overlay to be on top of the parent’s overlay because the autocomplete overlay was opened at a later time.
Screenshots
Desktop (please complete the following information):
- OS: [e.g. iOS] macOS 12.2.1
- Browser [e.g. chrome, safari] Chrome
- Version [e.g. 22] 99.0.4844.51 (Official Build) (arm64)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top Results From Across the Web
jQueryUI autocomplete hidden behind modal - Stack Overflow
When I open my page and click to open a modal for registration, I'm greeted with a textbox which should auto-complete. When I...
Read more >How To Create Autocomplete on an Input Field - W3Schools
Create an Autocomplete Form. Step 1) Add HTML: Example. <!--Make sure the form has the autocomplete function switched off:-->
Read more >Place Autocomplete | Maps JavaScript API - Google Developers
The Place Autocomplete sample demonstrates how to use the Place Autocomplete widget to provide a type-ahead search box. The radio buttons allow you...
Read more >Autocomplete | Angular Material
Unique ID to be used by autocomplete trigger's "aria-owns" property. ... Class or list of classes to be applied to the autocomplete's overlay...
Read more >8163 (Autocomplete showing on hidden part of overflown div)
comment:1 Changed 11 years ago by Jörn Zaefferer ... You're manually adding the ui-autocomplete class to the input, where it doesn't belong (it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi!
This is definitely a bug. Added it to our board, with a repro: https://github.com/primer/react/pull/1976)
I couldn’t come up with a quick workaround for it.
You might want to use AnchoredOverlay instead. It supports
renderAnchor
for writing the anchor along with the AnchoredOverlay andanchorRef
if it’s an external anchor.Have a similar problem with ActionMenu in Dialog