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

TypeError: Cannot read property 'cloneNode' of undefined #1

Closed
ynhhoJ opened this issue Jan 26, 2020 · 5 comments
Closed

TypeError: Cannot read property 'cloneNode' of undefined #1

ynhhoJ opened this issue Jan 26, 2020 · 5 comments

Comments

@ynhhoJ
Copy link

ynhhoJ commented Jan 26, 2020

On DnD in console log appears error: TypeError: Cannot read property 'cloneNode' of undefined and Error in nextTick: "TypeError: Cannot read property 'cloneNode' of undefined".

@Flashantik
Copy link

On DnD in console log appears error: TypeError: Cannot read property 'cloneNode' of undefined and Error in nextTick: "TypeError: Cannot read property 'cloneNode' of undefined".
The same problem. Did you find a solution?

@rlemaigre
Copy link
Owner

Sorry, can't reproduce. Can you provide a small github repo or a codesandbox or anything that can help me fix this ?

@Flashantik
Copy link

Flashantik commented Apr 3, 2020

Sorry, can't reproduce. Can you provide a small github repo or a codesandbox or anything that can help me fix this ?

Well, i create a codesandbox, but everything works fine in it. It's crazy..
In my project i have that error
image
I use Nuxt.js but I don’t think he’s to blame..
and link to

DropList.prototype.computeInsertingGrid = function computeInsertingGrid () {
        var feedbackParent = this.$refs['feedback']['$el'];
        var feedback = feedbackParent.children[0];
        var clone = feedback.cloneNode(true);   //<----  ERROR
        var tg = this.$refs['tg']['$el'];
        tg.append(clone);
        var grid = new Grid(tg.children);
        clone.remove();
        return grid;
    };

My code

<drag key="i" :data="data.item" class="item">
      {{data.item.name }}
</drag>

What could be the problem?

@rlemaigre
Copy link
Owner

If you're using a drop list, can I see the template where it appears ?

If a codesandbox doesn't work, can you make a small repo on github that I can clone ?

@rlemaigre
Copy link
Owner

To anyone stumbling upon this issue, make sure you define the "feedback" slot when using a drop list.

nicholaszuccarelli added a commit that referenced this issue Oct 19, 2021
nicholaszuccarelli added a commit that referenced this issue Oct 19, 2021
Merge pull request #1 from rlemaigre/master
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

3 participants