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

144
Views
anchor tag keyboard Event not firing, works only on onClick

i have an anchor tag and there are keyevents which i need to add

the code is doing its work and here is the jsfiddle for it if i use span tag

<span v-show="show" @click.prevent="backTo" @keyup.enter="backTo" @keyup.space="backTo">

here is the working fiddle with span

https://jsfiddle.net/dg5ra0fL/

i changed it to anchor tag but now i am unable to fire a keyevent.

Reference Question:onkeyup, onkeydown events not firing for SPAN element
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!