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

Problems Passing Enumerable Prop Types From Component Index File #118

Open
sconway opened this issue May 3, 2017 · 1 comment
Open

Problems Passing Enumerable Prop Types From Component Index File #118

sconway opened this issue May 3, 2017 · 1 comment

Comments

@sconway
Copy link

sconway commented May 3, 2017

I recently started using your Bluekit project with some other developers that I work with, and we really enjoy it! One thing that I had trouble setting up was a propsDefinition for enumerable properties. I am trying to replicate the button component that is on the bluekit demo, but I’m unsure how to pass the enumerable values in the component index file. At the moment, it looks like this:

component-index

And they are being rendered as input fields instead of a select dropdown:

rendered-button

I have tried just using an array, instead of an array inside a String, but that did not seem to work either. The componentIndex.js file for this project is ignored, so I was unable to see how you guys were doing this for this project. My button component is defined as follows:

button-component

Do you have any idea what I am missing with this? Please let me know if you need any more information, and thank you for the help!

@alexcastillo
Copy link

Did you try clearing local storage?

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

No branches or pull requests

2 participants