# Drop Event not firing

**URL:** https://discuss.prosemirror.net/t/drop-event-not-firing/4964
**Category:** Uncategorized
**Created:** [October 19, 2022, 10:30am UTC](https://discuss.prosemirror.net/t/drop-event-not-firing/4964 "2022-10-19T10:30:12Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ThePaulMcBride](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/thepaulmcbride/32/3122_2.png) [@ThePaulMcBride](https://discuss.prosemirror.net/u/ThePaulMcBride)
#### Post date: [October 19, 2022, 10:30am UTC](https://discuss.prosemirror.net/t/drop-event-not-firing/4964/1 "2022-10-19T10:30:12Z")

</div>

Hi folks, I’m working on a TipTap editor which uses ProseMirror under the hood. I’m trying to add the ability to drag files in from the desktop and have them upload on drop, however, the drop handler is never firing. Here is my code, the `dragenter` and `dragover` are both working fine. Am I doing something wrong?

```javascript
new Plugin({
  props: {
    handleDOMEvents: {
      dragover: (view, event: Event) => {
        event.preventDefault();
        console.log("dragover", event);
        return true;
      },
      dragenter: (view, event: Event) => {
        event.preventDefault();
        console.log("dragenter", event);
        return true;
      },
      drop: (view, event: Event) => {
        event.preventDefault();
        console.log("drop", event);
        return true;
      },
    },
  },
})

```

---

<div class="post-metadata">

### Author: ![marijn](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/marijn/32/15_2.png) [@marijn](https://discuss.prosemirror.net/u/marijn)
#### Post date: [October 19, 2022, 11:41am UTC](https://discuss.prosemirror.net/t/drop-event-not-firing/4964/2 "2022-10-19T11:41:26Z")

</div>

If I add this to a vanilla editor, the `drop` handler is called just fine. Maybe you have another plugin with a drop handler handling the event.
