Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upControls: String literal type with "." in it uses "object" control #12008
Labels
Comments
|
This might be an issue in |
|
As I saw the code row.type is wrong but can't figure out which part of the code cause this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I noticed in my TypeScript + React app, if I specify a string enum with string literals that have dots "." in them, the control appears to default to the "object" control text area. I'm using storybook@6.0.6.
To Reproduce
test: 'test.thing' | 'other.thing'to theButtonPropsinterface defined in Button.tsx.Expected behavior
"test" control should be a select element with "test.thing" and "other.thing" as options