+
Skip to content
This repository was archived by the owner on Oct 14, 2025. It is now read-only.

Conversation

clintcs
Copy link
Collaborator

@clintcs clintcs commented Aug 2, 2024

🚀 Description

Form Controls Layout's split control is broken in Storybook.

Storybook rerenders components when one of the controls is interacted with. So the split setter was running before Form Control Layout's default slot was established, causing the ow assertion in the split setter to fail. I removed the assertion.

📋 Checklist

  • I have read and followed the Contributing Guidelines.
  • I have added tests to cover new or updated functionality.
  • I have created or updated stories in Storybook to document the new functionality.
  • I have included a changeset with this Pull Request if it adds/updates/removes functionality for consumers.
  • I have scheduled a Design Review for these changes, if one is required.
  • I have followed the ARIA Authoring Practices Guide and/or met with the Accessibility Team to ensure this functionality is accessible.

🔬 How to Test

  1. Navigate to Form Controls Layout in Storybook.
  2. Check the console for errors.
  3. Play with the split control. Make sure it works.

📸 Images/Videos of Functionality

N/A

Copy link

changeset-bot bot commented Aug 2, 2024

🦋 Changeset detected

Latest commit: ab5ffab

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@crowdstrike/glide-core Patch

Not sure what this means? Click here to learn what changesets are.

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

Copy link
Contributor

github-actions bot commented Aug 2, 2024

@clintcs clintcs force-pushed the dont-assert-in-form-controls-layout-split-setter branch from 1b5e0df to ab5ffab Compare August 2, 2024 15:19
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Storybook's rerendering behavior is unusual. But consumers could be doing a rerender as well, for whatever reason. Thus the changeset.

@clintcs clintcs marked this pull request as ready for review August 2, 2024 15:21
Copy link
Collaborator

@ynotdraw ynotdraw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the quick fix. Storybook looks good now. Once this merges I'll cut another release.

@clintcs clintcs merged commit 0ae63be into main Aug 2, 2024
@clintcs clintcs deleted the dont-assert-in-form-controls-layout-split-setter branch August 2, 2024 15:25
@github-actions github-actions bot mentioned this pull request Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载