Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

228
Vistas
@react-google-maps/api <GoogleMap> onClick not working

I'm using @react-google-maps/api library and everything in package has been working correctly.
Now I just noticed that component's onClick event has lost its functionality and in my website the functions attached to it are not working. I don't think I have changed any code related to onClick functioanlity.

This is easily seen as I have also used with clickable markers inside and when hovering mouse over those markers it remains as "drag-hand" and doesn't change to "pointing-hand".
Also I have marker with title prop. Now if I hover mouse over it the title won't appear.

I tried to test this by normal console loggin, but console remains empty.
Following picture shows the basic component with onClick event and that onClick event does not function.

enter image description here

I might be missing something but this just appeared out of nowhere to functioning application and I'm puzzled about this.

I'm using: "@react-google-maps/api": "^2.2.0",
and imports are basic:

import {
  GoogleMap,
  Marker,
  Polygon,
  useJsApiLoader,
} from '@react-google-maps/api';
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

It seems Google has broken something on their end. I'm experiencing the exact same problem in our application. There's an invisible overlay div floating around that blocks access to the content underneath. I temporarily fixed it in CSS by unsetting the height of the mysterious overlay div.

.gm-style-moc {
    height: unset !important;
}

I guess Google will also fix this on their end soon.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda