question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Was vue support v-on:drop and v-on:paste ?

See original GitHub issue

Version

2.4.1

Reproduction link

https://jsfiddle.net/thainayu/50wL7mdz/47314/

Steps to reproduce

Drag file to red box (normal ondrop) work. But black box using v-on:drop does not

What is expected?

v-on:drop should work like ondrop and trigger vue object’s method like other event

What is actually happening?

v-on:drop does not triggered


Same go for paste. paste may not be standard but at least jquery support it

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rmtrycommented, Aug 5, 2020

I accidentally found a simple solution for drop, hope it is not too late 😄 @drop.prevent=“handleDrop”

1reaction
LinusBorgcommented, Jul 16, 2017

That would be a problem to ask on forum.vuejs.org

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vue.js - The Progressive JavaScript Framework | Vue.js
Builds on top of standard HTML, CSS and JavaScript with intuitive API and world-class documentation. Performant. Truly reactive, compiler-optimized rendering ...
Read more >
Frequently Asked Questions - Vue.js
If you are starting a new project today, Vue 3 is the recommended choice. There are only a few reasons for you to...
Read more >
Releases - Vue.js
Sometimes TypeScript itself ships incompatible changes between minor versions, and we may have to adjust types to support newer versions of TypeScript.
Read more >
Quick Start - Vue.js
This command will install and execute create-vue, the official Vue project scaffolding tool. You will be presented with prompts for several optional features ......
Read more >
Introduction - Vue.js
The Progressive Framework​​ Vue is a framework and ecosystem that covers most of the common features needed in frontend development. But the web...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found