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

Applying dragula to list in Meteor #258

Closed
mazing opened this issue Nov 13, 2015 · 1 comment
Closed

Applying dragula to list in Meteor #258

mazing opened this issue Nov 13, 2015 · 1 comment
Labels

Comments

@mazing
Copy link

mazing commented Nov 13, 2015

In Meteor, I have a template

<template name="tasks">
  <ul class="list-group">
    {{#each tasks}}
      {{> task}}
    {{/each}}
  </ul>
</template>

in which I initialize dragula with

Template.tasks.onRendered( function () {
  dragula( [ this.find( 'ul' ) ] );
} );

It gets initialized but when I am dragging an element, I get the errors

Uncaught TypeError: Cannot read property 'appendChild' of null  [dragula.js:463]
Uncaught TypeError: Cannot read property 'className' of null  [dragula.js:28]

I am loading dragula.js with meteor-bower.

What is wrong?

@bevacqua
Copy link
Owner

See #248

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