jshimko / meteor-geocomplete

Geocoding and Places Autocomplete Plugin
http://ubilabs.github.com/geocomplete/
44 stars 4 forks source link

Why wont the dropdown show #19

Closed sferoze closed 9 years ago

sferoze commented 9 years ago

I have no idea why this is not working as your example. I just want a simple input box with autocomplete. It seems like it is loading google maps but no autocomplete dropdown is visible

input(type='text')#us2-address

t.autorun ->
    if GoogleMaps.loaded()
      t.$('#us2-address').geocomplete()

and I loaded google maps with places library and my API key.

Why no dropdown?

jshimko commented 9 years ago

Not sure. If you put together a reproduction repo, I'd be happy to take a look at it.

sferoze commented 9 years ago

Ahh I figured it out.

When you put the input in a bootstrap modal the dropdown does not show because it shows up underneath the modal.

To fix this you have to add css to the dropdown container with z-index 4000 !important or something