Topic: Google Map and Search box not working in modal

pabloabl premium asked 4 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 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 premium answered 4 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

  • ForumUser: Premium
  • Premium support: Yes
  • Technology: MDB jQuery
  • MDB Version: 4.19.0
  • Device: PC
  • Browser: Chrome
  • OS: Win10
  • Provided sample code: No
  • Provided link: No