JustFly1984 / react-google-maps-api

React Google Maps API
MIT License
1.76k stars 426 forks source link

StandaloneSearchBox not working in Modal #3171

Closed stesvis closed 1 year ago

stesvis commented 1 year ago

Hello,

I am using the StandaloneSearchBox successfully in my pages. However it doesn't seem to work when I load it inside a Modal.

When I type in the box it won't show me the popup with the list of matches. Or most likely it's showing behind the modal. https://codesandbox.io/s/react-bootstrap-5-forked-9o3xnb?file=/src/App.js

How can we get it to work in a Modal?

stesvis commented 1 year ago

Fixed with

.pac-container {
    z-index: 10000 !important;
}
ROD-MASAMI commented 9 months ago

where did you write that in the global.css its not working for me i can see the popup but i can't click them