ng2-dragula icon indicating copy to clipboard operation
ng2-dragula copied to clipboard

Issue with radio button selection

Open xmaestro opened this issue 8 years ago • 2 comments

Hi,

When radio input types are dragged and dropped, they lose their values.

This is a bug with Dragula.js as mentioned here.

Is there any workaround to make it work untill the issues is fixed in the library?

Thanks.

xmaestro avatar Feb 22 '17 12:02 xmaestro

Use a fork of dragula and link to a commit on your own repo. This is the kind-of-standard way to incorporate unreleased changes in npm packages. In your package.json you can go:

-    "dragula": "3.7.1",
+    "dragula": "https+git://github.com/xmaestro/dragula#commit-sha1",

I'm not sure npm is smart enough to make ng2-dragula use this version as well (I think it is) but if you can't, then use yarn instead.

cormacrelf avatar May 22 '17 16:05 cormacrelf

Hi,

Even I am facing the same issue. Radio button select is not working when radio buttoin is placed inside ngfor and this radio button is not part of dragula container its in some other component. But if comment dragula then select works fine. This is vary strange behaviour, this is only with dynamic data and with static data radio button works fine. If I comment dragula container then in both case radio button works fine.

suneethar avatar Feb 14 '18 16:02 suneethar