Google Maps Autocomplete Result in Bootstrap Modal Dialog

前端 未结 9 925
孤城傲影
孤城傲影 2020-12-07 17:22

I have a Google Maps Autocomplete input field inside a Twitter Bootstrap modal dialog and the autocomplete result is not displayed. However, if I press the down arrow key, i

9条回答
  •  無奈伤痛
    2020-12-07 18:05

    This worked for me.

                       var pacContainerInitialized = false; 
                        $('#inputField').keypress(function() { 
                                if (!pacContainerInitialized) { 
                                        $('.pac-container').css('z-index','9999'); 
                                        pacContainerInitialized = true; 
                                } 
                        }); 
    

提交回复
热议问题