react-forms icon indicating copy to clipboard operation
react-forms copied to clipboard

Should Field be renderable outside of Form?

Open DovydasNavickas opened this issue 7 years ago • 0 comments

I was implementing proper Field behavior when rendered/removed from FieldsArray (mounting/unmounting, to be precise) and noticed that Field cannot be rendered outside of Form.

But if I'm correct, it's as easy as adding formId prop and updating FormId getter to take that into account, not just context.FormId.

This is what BaseContainer does, inherently BaseFormButton does and Form itself does. Maybe setting formId would enable some scenarios that we didn't yet encounter?

DovydasNavickas avatar Jul 30 '17 22:07 DovydasNavickas