Google Places Autocomplete not showing up

前端 未结 3 1983
难免孤独
难免孤独 2020-12-15 03:41

I\'ve been working on this for hours trying to figure out why the supposedly simple autocomplete wasn\'t showing up.

It turns out that in my code, the input element i

3条回答
  •  抹茶落季
    2020-12-15 03:46

    There's another case where .pac-container won't show up: when u use fixed positioned containers and u leave the without actual relative/static childs the collapses to 0 height or to so small that the bottom edge is higher than where the .pac-containerwould appear. In such case you can see with devtools that pac-container is in right position, and has height, but not visible.

    body{min-height:calc(100vh)} could help.

提交回复
热议问题