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

260
Views
How to add a click handler with a modifier to vue-draggable (without triggering choose event)

I am trying to implement a click handler on the child of the <draggable> element. I only want the handler to be called if a modifier (alt/ctrl) is used, and I don't want the choose event to be called if the click handler is called with a modifier.

  <draggable @choose="chooseEvent">
    <child-element
       @click.native.alt.exact.stop="toggleProblem"
       @click.native.ctrl.exact.stop="toggleProblem" />
   ....

This does not work. The handlers are correctly called when their modifiers are used, however, the chooseEvent is always called. If I make the choose event @choose.exact that doesn't work either. I have also tried adding .stop and .prevent to the click handlers, doesn't work either.

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!