使用google map的api实现自动充填input 标签补全搜索的位置提示时遇到了无法自动充填的问题,我的解决方案如下:
//添加样式
.pac-container {
z-index: 1100 !important;
}
The reason was that map has z-index: 1000 and modal has z-index: 1050. So, add it.
来源:https://github.com/tomchentw/react-google-maps/issues/791
由github内的讨论可知,部分用户出现该情况时时通过在url指定版本号解决:3.31 or add v=3.31 or v=3