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

358
Vistas
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 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