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

[CheckboxButtonGroup] node labels not getting rendered in v7 #269

Open
2 tasks done
SimonGolms opened this issue May 23, 2024 · 0 comments
Open
2 tasks done

[CheckboxButtonGroup] node labels not getting rendered in v7 #269

SimonGolms opened this issue May 23, 2024 · 0 comments

Comments

@SimonGolms
Copy link

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 😯

In v7 the CheckboxButtonGroup does not longer render the options label.

<CheckboxButtonGroup
  name="basic-checkbox"
  options={[
    {
      id: "1",
      label: <div>I am a div</div>,
    },
    {
      id: "2",
      label: "I am a string",
    },
  ]}
/>

Expected behavior 🤔

Since this breaking change was not mentioned in the somehow release notes, I am expecting this as a bug and that the options label getting rendered again to be also compatible with the MUI FormControlLabel label props

Steps to reproduce 🕹

v6: https://codesandbox.io/p/sandbox/boring-dan-hrjpqr?file=%2Fpackage.json%3A12%2C36
v7: https://codesandbox.io/p/sandbox/elastic-perlman-4z65jj?file=%2Fpackage.json%3A12%2C36

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