Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

261
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda