cocoon icon indicating copy to clipboard operation
cocoon copied to clipboard

Add vanilla JS support

Open nicocedron opened this issue 4 years ago • 4 comments

nicocedron avatar Apr 01 '20 07:04 nicocedron

Some other implementation for reference: https://github.com/oddcamp/cocoon-vanilla-js

We are using this repo as "Cocoon vanilla js" for a while 👍

pedrofurtado avatar Jul 03 '21 16:07 pedrofurtado

Why is the Rails gem not migrating to the vanilla JS version of @pedrofurtado ? Rails ujs has dropped the JQuery JS dependency for quite some time now...

OtherCroissant avatar Mar 23 '22 15:03 OtherCroissant

There are alternatives like https://github.com/arielj/vanilla-nested as well. Cocoon is just one solution for the problem based on jQuery and heavily opinionated (at least in my :eyes:).

simi avatar Mar 23 '22 16:03 simi

Definitely opinionated, imho you can use any js you like (but I only maintain one version), but the vanilla-nested is looking pretty good indeed 👍 Lately not having as much time to keep up, and for my situation everything is working.

nathanvda avatar Mar 24 '22 09:03 nathanvda