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.

add class on dragover

See original GitHub issue

…if that’s the right event, I’d like to add a class to the list an item is being added to

something like

.sortable-there-a-thing-hovering-over-me

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:3
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

14reactions
philippkuehncommented, Jan 23, 2017

+1 is there any news on this?

1reaction
waynevansoncommented, Jan 15, 2020

Closing because this has been answered.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add class in drop area (file input) when dragging an external ...
You can do this with javascript by "listen" to event dragover. var upload = document.querySelector('.upload'); upload.
Read more >
Dynamic Angular Class Toggle on Drag Events | by Ole Ersoy
When we drag a file over the drop field we want to change the class assigned to the element to ImageUploadPreviewDragOver . When...
Read more >
HTMLElement: dragover event - Web APIs | MDN
The dragover event is fired when an element or text selection is being dragged over a valid drop target (every few hundred milliseconds)....
Read more >
ondragover Event - W3Schools
The ondragover event occurs when a draggable element or a text selection is being dragged over a valid drop target. By default, data/elements...
Read more >
Highlight an element when dragging a file over it - HTML DOM
classList.add('dragging'); });. In similar events, the class is removed from the element when user moves the file out of the element, or drops...
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