Skip to content

Conversation

veiko
Copy link
Contributor

@veiko veiko commented Oct 6, 2018

Fixes #86.

When setting a default value for a prop with type enum, defaultValue was being returned as null. Upon further investigation the switch statement in parser.getLiteralValueFromPropertyAssignment was not handling the case where the prop type was an enum.

Before:
image

After:
image

@pvasek pvasek merged commit 25fd767 into styleguidist:master Oct 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants