react-json-form icon indicating copy to clipboard operation
react-json-form copied to clipboard

Don't submit widget's internal input fields with form data

Open bhch opened this issue 4 years ago • 2 comments

Currently, all the widgets fields are submitted with the form. But the expected behaviour is that only the JSON data is submitted.

One possible solution is using data-name instead of name on inputs.

bhch avatar Sep 20 '21 16:09 bhch

It is good to know that only the JSON data needs to be submitted. When playing around with django-jsonform, I realized that 'multiselect' values are not sent unlike the rest of the inputs. Because of how the widget is implemented, there are no name attributes on any of the input elements.

Apparently this is not even the intended function, but the inconsistency was a bit confusing.

I always feel bad leaving comments on public repos that are even remotely negative -- library is awesome!

patdahl avatar May 08 '23 19:05 patdahl

This has been on my to-do list for so long but I've been putting it off. I'll try to fix it in the next release.

But thanks for commenting. I did not find it negative at all.

bhch avatar May 08 '23 20:05 bhch