Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

angularjs UI bootstrap modal with google places

I'm trying to open a Google Maps Places Autocomplete Address Form inside of a UI Bootstrap modal. My problem is that the google places dropdown is showing up behind the modal, Is there anyway to get it on top of the modal so you can see it?

Address Form https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform

Bootstrap http://angular-ui.github.io/bootstrap/

Any help or Ideas would help a lot.

like image 611
referscus Avatar asked Nov 18 '14 22:11

referscus


2 Answers

This turned out to just be a z-index issue, the problem was fixed with by adding the following to the CSS.

.pac-container {
    z-index: 100000;
}
like image 141
referscus Avatar answered Nov 25 '22 09:11

referscus


I have angular7 + bootstrap modal this not work for me

so I add ::ng-deep, see the final css below

::ng-deep .pac-container { z-index: 100000; }

thanks to referscus for his solution !!!

like image 44
Yoni Ayalon Avatar answered Nov 25 '22 11:11

Yoni Ayalon