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

feat(addons/knobs): support undefined in select #7357

Closed
wants to merge 5 commits into from

Conversation

christophehurpeau
Copy link
Contributor

@christophehurpeau christophehurpeau commented Jul 9, 2019

Issue: #4487

What I did

Move array to object converstion from SelectType to knob select function, and add support for undefined by converting it to { Undefined: '__undefined__' }

I know it's not likely to be merged (and I had to remove tests which is never a good idea), but it's to open the discussion with a working solution

How to test

  • Is this testable with Jest or Chromatic screenshots?
  • Does this need a new example in the kitchen sink apps?
  • Does this need an update to the documentation?

If your answer is yes to any of these, please make sure to include it in your PR.

@vercel
Copy link

vercel bot commented Jul 9, 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-fork-christophehurpeau-patch-2.storybook.now.sh

@vercel vercel bot temporarily deployed to staging July 9, 2019 12:14 Inactive
@vercel vercel bot temporarily deployed to staging July 9, 2019 12:19 Inactive
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