Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

oneOf smart knob adds empty option even when they aren't allowed #16

Open
ah-adarlow opened this issue Nov 21, 2017 · 0 comments
Open

Comments

@ah-adarlow
Copy link

When creating a knob for oneOf propTypes, smartKnobs adds an empty option. That's usually good, but not in the following cases:

  • The prop is required
  • The prop has a default value

In these cases, there shouldn't be an empty option.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant