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

Copy function isn't working #120

Open
petermiles opened this issue Oct 10, 2017 · 1 comment
Open

Copy function isn't working #120

petermiles opened this issue Oct 10, 2017 · 1 comment

Comments

@petermiles
Copy link

Here is some provided code.

https://plnkr.co/edit/F6yC7DTSKIrsARThvedn?p=preview

I'm trying to enable the dragula COPY function when I drag a "recipe" into a table.

When I try to do it, I get the error
Cannot read property '0' of undefined at applyDrop (service.js:80)

How can I fix this? i've spent so long on it.

@nicosouv
Copy link

I changed you dragula attributes to : ='"bag-one"' and it worked.

If you look at their example, the attribute is encapsulated in single and double quote:

<div dragula='"fifth-bag"'></div>

Hope this helps.

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