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.

Is it possible to make an nth child draggable?

See original GitHub issue

Is this possible? If not I’d like to request that feature.

My use case is I’m using this Collapse element from Element.IO.

The problem is it seems like the collapse component must be a direct parent of the collapse-items. However in this Draggable library, it seems like the draggable component or the transition-group component must also be a direct parent. So, I can’t have both be direct parents.

I tried setting the class option but draggable doesn’t seem to pick up on it if the item is deeply nested as an nth child.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
David-Desmaisonscommented, Oct 25, 2017

Well you cannot. I guess you reached the limit of reusability of this component. At this point the only solution I see is forking collapse component and adding dnd feature with Sortable library without using vue.draggbale.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Parent div also drag when child div drag - Stack Overflow
I have a parent div which is draggable, in this parent div i have another div which is also draggable. When i am...
Read more >
Select Page Elements | Basic Guides - TestCafe
Select Page Elements. You should identify the target page element to perform an action with it (click, drag, etc.) or check its state...
Read more >
Selecting nth child - GSAP - GreenSock
I am trying animate child of element dynamically on button click. Here is the code for selecting the nth-child.
Read more >
jQuery :nth-child selector - javatpoint
This selector is used to match the elements based on their position within a group of siblings. It matches each element, which is...
Read more >
nth-child() - CSS: Cascading Style Sheets - MDN Web Docs
The :nth-child() CSS pseudo-class matches elements based on their position among a group of siblings.
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