Is it possible to make an nth child draggable?
See original GitHub issueIs 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:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.See workinh example:
https://github.com/SortableJS/Vue.Draggable/blob/master/examples/Component3.html