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

357
Visualizações
How can I prevent a Leaflet popup from redirecting to other page or change the href

I am working on a vue2leaflet map (https://vue2leaflet.netlify.app/components/LPopup.html#demo ), the vue2leaflet map has a default href="close", so when clicked on the (X) it redirect me to this #close. Is there a way in vue2leaflet map to modify this ref or disable the href redirection ? and also how can I access this selector '.leaflet-pane.leaflet-popup-pane' via ref in vue.

my code : in template

 <l-popup ref="closep">
   <slot name="popup" v-bind="{ location }" />
 </l-popup>


in <script>
--------------------
 mounted() {
    this.$refs.closep
    console.log("popup close.... , this.$refs.closep); // gives me undefined
  },
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