addon-smart-knobs icon indicating copy to clipboard operation
addon-smart-knobs copied to clipboard

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

Open ah-adarlow opened this issue 8 years ago • 0 comments

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.

ah-adarlow avatar Nov 21 '17 19:11 ah-adarlow