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.

expose the ID of the dragged element so it can be styled or manipulated imperatively

See original GitHub issue

Example repl based on the Dragula example. I assume transformDraggedElement would have to be called here or maybe I’m missing something? thanks for a great library!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
isaacHagoelcommented, Apr 5, 2021

@tomasmoose I’ve made and release this change. thanks.

0reactions
tomasmoosecommented, Apr 5, 2021

Hi @isaacHagoel, exposing id would also work from my side, and yes sounds a lot simpler and cleaner solution so would go forward with that, from my side just grabbing the element with getElementById or similar would work perfectly!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Draggable - dnd-kit – Documentation
The id argument is a string that should be a unique identifier, meaning there should be no other draggable elements that share that...
Read more >
Setting a custom ghost image when using HTML5 drag and drop
In the HTML5 spec it's possible to make elements drag-and-drop-able. This is not new ... When you drag a thing, what gets dragged...
Read more >
isaacHagoel/svelte-dnd-action - GitHub
An action based drag and drop container for Svelte - GitHub ... If what you are after is altering styles, do it to...
Read more >
Using the HTML5 Drag and Drop API - web.dev
The HTML5 Drag and Drop API means that we can make almost any element on our page draggable. In this post we'll explain...
Read more >
How to Create and Manipulate DOM Nodes in Vanilla JS
Therefore, this is the first part of the article. In the first part, we will cover DOM node creation and focus on manipulating...
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