Skip to content

chore(fuselage,storybook): remove unsupported labelChildren control from CheckBox stories#2048

Merged
tassoevan merged 2 commits into
RocketChat:mainfrom
SheinRG:fix/checkbox-storybook-labelchildren
Jul 3, 2026
Merged

chore(fuselage,storybook): remove unsupported labelChildren control from CheckBox stories#2048
tassoevan merged 2 commits into
RocketChat:mainfrom
SheinRG:fix/checkbox-storybook-labelchildren

Conversation

@SheinRG

@SheinRG SheinRG commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

… stories

The CheckBox story exposed an auto-generated labelChildren control in Storybook. Setting it to an object crashed Storybook with "Objects are not valid as a React child (found: object with keys {})", since labelChildren is a ReactNode rendered directly.

Disable the control via argTypes, mirroring the approach used for the is prop. The component TypeScript definition is unchanged.

Closes #1906

Proposed changes (including videos or screenshots)

Issue(s)

Further comments

… stories

The CheckBox story exposed an auto-generated `labelChildren` control in
Storybook. Setting it to an object crashed Storybook with "Objects are not
valid as a React child (found: object with keys {})", since `labelChildren`
is a ReactNode rendered directly.

Disable the control via argTypes, mirroring the approach used for the `is`
prop. The component TypeScript definition is unchanged.

Closes RocketChat#1906

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Jun 30, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 30e2675

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@tassoevan tassoevan changed the title fix(fuselage): remove unsupported labelChildren control from CheckBox… chore(fuselage,storybook): remove unsupported labelChildren control from CheckBox stories Jul 3, 2026
@mergify

mergify Bot commented Jul 3, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@tassoevan tassoevan merged commit 6b62788 into RocketChat:main Jul 3, 2026
7 checks passed
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

Successfully merging this pull request may close these issues.

CheckBox: Remove unsupported labelChildren prop from Storybook controls

2 participants