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

253
Views
Looking for event that can trigger my popup on press enter or when my marker is active in vue2 leaflet map

I am working on leaflet map and trying to show popup (<l-popup), when I press ENTER key and also when my marker is on active state then when on Enter press the popup show popup. I have looked through leaflet map doc : https://vue2-leaflet.netlify.app/components/LPopup.html#demo but cannot find any props or event that do what I want.

 <l-marker
          v-for="(loc, index) in locations"
          :key="index"
          @keydown.enter="openPopupOnEnterPress(index)"
         // @keyup.enter = "showPopup = true"
    
        >


     data() {
   return {
      showPopup: false,
   } 
}


methods: {
    openPopupOnEnterPress(e) {
      if (e.keyCode === 13 || e.key === "Enter") {
        alert("Enter was pressed");
      } else {
        console.log("Enter was not pressed");
      }
    },
}

The event or the function openPopupOnEnterPress(e) doesnot event triggers at all. Any help will be much appreciated

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

<l-marker
    v-for="(loc, index) in locations"
    :key="index"
    @keydown.enter.native="openPopupOnEnterPress(index)"
    tabindex="0"
/>
about 4 years ago · Juan Pablo Isaza Report
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!