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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUGFIX v5.1.x change breaks Boolean knob (#6366) #6830

Merged
merged 1 commit into from May 20, 2019

Conversation

leoyli
Copy link
Contributor

@leoyli leoyli commented May 20, 2019

Issue: #6366

What I did

  • Use ES6 argument default value assignment to handle undefined case, which is never wanted; this prevent false cast to empty string (bug).

How to test

  • Find a story that contains a toggle boolean knob. Toggle it to see no type warning.

I have a strong feeling that we need to rewrite knob from the ground up with TS since it was too buggy. But I haven't talk with @ndelangen about what is the plan or roadmap for that yet...

And sorry for this easy bug I committed to fix lately, I get many things pile up unfortunately 馃槀...

Use ES6 argument default value assignment to handle `undefined` case,
which is never wanted; this prevent `false` cast to empty string (bug).
@vercel
Copy link

vercel bot commented May 20, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

Latest deployment for this branch: https://monorepo-git-bugfix-6366change-breaks-boolean-knob.storybook.now.sh

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.

馃檶

@leoyli leoyli merged commit f65773f into next May 20, 2019
@leoyli leoyli deleted the bugfix/6366/change-breaks-Boolean-knob branch May 20, 2019 15:22
@leoyli
Copy link
Contributor Author

leoyli commented May 20, 2019

Manually test in a staging environment (storybook official) was proven the bug fixed. PR merged.

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.

None yet

2 participants