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

DOMExceptions with Dropzones #47

Open
EndenDragon opened this issue Sep 16, 2019 · 2 comments
Open

DOMExceptions with Dropzones #47

EndenDragon opened this issue Sep 16, 2019 · 2 comments
Labels

Comments

@EndenDragon
Copy link

EndenDragon commented Sep 16, 2019

Describe the bug
I am encountering errors when dragging and dropping nested list. The issue only arises when showDropzoneAreas is enabled.

My element looks something like

<ul id="scoresheet-editor">
      <item :model="criteria" v-drag-and-drop:options="draggableOptions"></item>
</ul>

Where <item> is essentially a <li> with lots of other child elements inside... including a single <ul> which would contain more of .

<li>
    <ul>
        <item> <!-- more <item> -->
    </ul>
</li>

Expected behavior
I expect there would not be an error when performing dropping action.

Screenshots
image

Desktop (please complete the following information):

  • OS: Mac OS 10.13
  • Browser Chrome 76

Additional context
Add any other context about the problem here.

@nikolasp
Copy link
Collaborator

Hi @EndenDragon ,

Thanks for the feedback.

I'll try to reproduce this.
In the meantime move v-drag-and-drop:options="draggableOptions" directive to the child component Item.

Thanks

@EndenDragon
Copy link
Author

Hi @nikolasp ,
Thanks for the response. I moved it into the item and the error still persists. The only difference is that it doesn't handle reordering anymore. I am able to drag and the dropzones can be shown. However when dropped, nothing happens and the order of elements stays the same. I am using the same options as previous.

draggableOptions: {
                    dropzoneSelector: 'ul',
                    draggableSelector: 'li',
                    multipleDropzonesItemsDraggingEnabled: true,
                    reactivityEnabled: false,
                    onDrop: function (e) {
                    },
                }

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

No branches or pull requests

2 participants