Google Map and Search box not working in modal


Topic: Google Map and Search box not working in modal

pabloabl pro premium asked 5 years ago

SearchBox does not work when it is inside a modal.

Does anyone know how to fix it?

Thanks and best regards. Pablo


Grzegorz Bujański staff commented 4 years ago

Hi. How we can reproduce this issue? Can you create snippet here: https://mdbootstrap.com/snippets and show us this bug?


pabloabl pro premium commented 4 years ago

Hi!, I already solved it, thank you very much for responding.

The div where the results are loaded is called pac-container, I just adjusted the z-index for it and it worked.

.pac-container { z-index: 100000 !important; }


Grzegorz Bujański staff commented 4 years ago

I'm glad you were able to solve this problem. Best, Grzegorz


pabloabl pro premium answered 5 years ago

.pac-container { z-index: 100000 !important; }


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.19.0
  • Device: PC
  • Browser: Chrome
  • OS: Win10
  • Provided sample code: No
  • Provided link: No