sickdyd / react-search-autocomplete

A search box that filters the provided array of objects
https://sickdyd.github.io/react-search-autocomplete
MIT License
218 stars 82 forks source link

Search results dropdown is transparent #63

Closed KishoreKumar18 closed 1 year ago

KishoreKumar18 commented 2 years ago

Is there a way where we can set the background color, height, width for the Search results container? In my code, the background of the dropdown container is transparent. Hence, I could see the below fields overlapping with the dropdown. I was able to set the styling for each items using formatResult prop but could not handle the container. Also, wondering whether the zIndex might have something to with the overlapping.

autocompletedropdown
sickdyd commented 2 years ago

@KishoreKumar18 It looks like there's some problem with the z-index. Could you provide a codesandbox example with the issue? It would make it easier to try to fix.

sickdyd commented 1 year ago

Closing because I assume that the zIndex change fixed the problem.