Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the draggable-object-target lose the class accepts-drag #163

Open
Igor-Rabodzei opened this issue Nov 13, 2019 · 2 comments
Open

fix the draggable-object-target lose the class accepts-drag #163

Igor-Rabodzei opened this issue Nov 13, 2019 · 2 comments

Comments

@Igor-Rabodzei
Copy link

Igor-Rabodzei commented Nov 13, 2019

I have a structure like this

 {{#draggable-object-target action=(action 'dragItem') folderId=folderId}}
   {{#each activeLists as |list index|}}
         {{#draggable-object content=list}}
              {{sidebar-list-item
                list=list index=index moreLinksOpen=moreLinksOpen reloadList=(action "reloadList")
                openList=openList
             }}
         {{/draggable-object}}
 {{/draggable-object-target}}


 {{#draggable-object-target action=(action 'dragItem') folderId=folderId}}
   {{#each activeLists as |list index|}}
         {{#draggable-object content=list}}
              {{sidebar-list-item
                list=list index=index moreLinksOpen=moreLinksOpen reloadList=(action "reloadList")
                openList=openList
             }}
         {{/draggable-object}}
 {{/draggable-object-target}}

If I try to drag item and hover the draggable-object that the draggable-object-target lose the class accepts-drag

Why the draggable-object should return false on Code . ???
If we set to return true it will be work!

@dgavey
Copy link
Collaborator

dgavey commented Nov 13, 2019

You shouldn't have the draggable-object inside the draggable-object-target it isn't meant to work that way. You might be able to make it work, but I'm not sure. You might be looking for sortable items in which case take a look at the readme, that might work for you.

@Igor-Rabodzei
Copy link
Author

@dgavey I need to highlight an area where I drag the item
The draggable-object-target represents a place to drag objects.
The draggable-object component represents an object you want to drag onto a target.
I have many folders - draggable-object-targets
And in those folders many items - draggable-objects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants