tbleckert / react-select-search

⚡️ Lightweight select component for React
https://react-select-search.com
MIT License
674 stars 149 forks source link

z-index problem #268

Open Karthigeyankiruba opened 5 months ago

Karthigeyankiruba commented 5 months ago

Describe the bug z-index problem is there in select-search-select class, tried giving z-index111111 but still its not working

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Search select feature the background is transparent and other components from the projects overlap the options'

Expected behavior It should be on top of every component or it can be editable by giving z-index.

Screenshots

Screenshot 2024-01-12 at 10 39 39 AM

Desktop (please complete the following information):

ishandutta2007 commented 3 months ago

I had a parent as visibility:hidden, as a result no matter what I was setting the z-index as it was still going underneath. The following css help me overcome it.

.select-search-container {
    position: absolute;
    visibility: visible;
}

You can read more about it here