ng2-dragula
ng2-dragula copied to clipboard
Issue with radio button selection
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.
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.
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.