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

Addon-knobs: allow array values in select and options knobs #8027

Merged
merged 3 commits into from
Sep 7, 2019

Conversation

emilio-martinez
Copy link
Contributor

Issue: #7600

What I did

Allow array values in select and options knob types. To be clear, changes are only to types, no runtime/functional changes.

How to test

Added types test cases to validate passing types for both select and options knob types.

@vercel
Copy link

vercel bot commented Sep 7, 2019

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

@shilman shilman added this to the 5.2.0 milestone Sep 7, 2019
@shilman shilman merged commit 458d885 into storybookjs:next Sep 7, 2019
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 fix!

@tinymachine
Copy link
Contributor

tinymachine commented Dec 10, 2019

This is great, but is there any reason arrays can't be used as values in radio and other types of knobs besides select and options?

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.

3 participants