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

Controls: Fix defaultValue without PropType #14387

Merged
merged 1 commit into from
Mar 30, 2021
Merged

Conversation

tmeasday
Copy link
Member

Issue: #14377

What I did

Handle the case where type is null

How to test

  • Is this testable with Jest or Chromatic screenshots?
    Chromatic - yes
    Jest - couldn't get the extractDocgenProps.test to easily recreate this situation (you need the first prop to have a type and the second to not, which isn't possible in the current test harness).

@tmeasday tmeasday added bug patch:yes Bugfix & documentation PR that need to be picked to main branch labels Mar 30, 2021
@shilman shilman changed the title Add story and fix for #14377 Controls: Fix defaultValue without PropType Mar 30, 2021
@shilman shilman added addon: controls and removed patch:yes Bugfix & documentation PR that need to be picked to main branch labels Mar 30, 2021
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the quick turnaround!

@shilman shilman merged commit 767d44f into next Mar 30, 2021
@shilman shilman deleted the 14377-defaultValue-name-bug branch March 30, 2021 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants