Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

353
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!