Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

115
Visualizações
react-leaflet geojson with custom popup for each polygon not working correctly

Extending the following question: React-leaflet geojson onEachFeature popup with custom react component

I am trying to have a Form within each popup that renders. Ideally the user is able to edit certain values within the form and then submit it. Each polygon should have its own popup on click.

However, when i follow the question above, the event listeners aren't working. e.g, the page just refreshes instead of the e.preventDefault() working.

Could anyone point me how to solve this? or a more elegant solution?

fiddle/codesandbox: https://codesandbox.io/s/react-leaflet-geojson-oneachfeature-popup-with-custom-react-component-forked-dzo4jx

ALTERNATIVELY: A react component based method that unpacks the geojson, but this one, the mouseover event isnt working.. https://codesandbox.io/s/react-leaflet-geojson-oneachfeature-popup-with-custom-react-component-forked-8430lw

Either approach that solves the problem will do.

Thank you

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda