Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RadioGroup not passing name attribute to input elements #138

Closed
felixmosh opened this issue Jul 27, 2023 · 0 comments
Closed

RadioGroup not passing name attribute to input elements #138

felixmosh opened this issue Jul 27, 2023 · 0 comments

Comments

@felixmosh
Copy link
Collaborator

Expected Behavior

Given

<RadioGroup
          name="radioGroup"
          required
          defaultSelected={defaultSelected}
          errorLabel={errorLabel}
          validationErrors={{
            isDefaultRequiredValue: validationError,
          }}
        >
          <Radio label="One" value="one" />
          <Radio label="Two" value="two" />
          <Radio label="Three" value="three" />
        </RadioGroup>

it is expected that all input elements will have the same name, instead it puts a name attribute on the FieldGroup element (a div);

Current Behavior

it is expected that all input elements will have the same name, instead it puts a name attribute on the FieldGroup element (a div);

Possible Solution

pass the name prop to all children

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant