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

Style prop support #13

Open
stratos-vetsos opened this issue Jul 22, 2018 · 2 comments
Open

Style prop support #13

stratos-vetsos opened this issue Jul 22, 2018 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@stratos-vetsos
Copy link
Owner

Component style should be easily customizable through an object prop

@stratos-vetsos stratos-vetsos added the enhancement New feature or request label Jul 22, 2018
@stratos-vetsos stratos-vetsos self-assigned this Jul 22, 2018
@kayceecodes
Copy link

Hey Stratos I'm getting "Invalid prop height of type string supplied to App, expected number. " in my console. Selectrix doen't seem to take my own hard coded height prop. I'm using the basic example. Just need a very simple version of it.
<Selectrix
multiple={true}
materialize={true}
**height={190}
options={[
{
key: "javascript",
label: "Javascript"
},
{
key: "go",
label: "Go"
},
{
key: "ruby",
label: "Ruby On Rails"
},
{
key: "php",
label: "PHP"
}
]}
onChange={ value => console.log( value ) }
/>

@stratos-vetsos
Copy link
Owner Author

Hi kcee403,
There was an issue with backwards compatibility with React versions before 16.4.
Thanks for spotting out.

I just released a version fixing this (1.0.16), so run npm i --save-dev react-selectrix@latest and you should be fine.

Best Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants