primitives
primitives copied to clipboard
Fix checkbox missing name prop when is not inside a form
Description
This primitive uses a button and when inside a form adds a input. The name was destructured from the component and passed only to the input.
Fix:
- It was added the
nameprop to the button if the checkbox isnotinside a form.
I think this is probably OK but I'm reconsidering how we handle our bubble fields which would negate the need here. Need to think through this a bit before I merge.