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

Color can't change #9

Open
shemeermali opened this issue May 8, 2018 · 2 comments
Open

Color can't change #9

shemeermali opened this issue May 8, 2018 · 2 comments

Comments

@shemeermali
Copy link

I tried to change the color of the component, but not working.

                     <Spinner max={10}
                        min={2}
                        default={5}
                        onNumChange={(num) => { console.log(num) }}
                        color="#3295F0"
                        numColor="#3295F0"
                      />



                      <Spinner max={10}
                        min={2}
                        default={5}
                        onNumChange={(num) => { console.log(num) }}
                        color='rgba(50, 149, 240,1)'
                        numColor='rgba(71, 107, 107,1)'
                      />

                    <Spinner max={10}
                        min={2}
                        default={5}
                        onNumChange={(num) => { console.log(num) }}
                        color='#ed3d3d'
                        numColor='#ed3d3d'
                      />
@aysnort
Copy link

aysnort commented Aug 27, 2018

Same here

@marcocesarato
Copy link

marcocesarato commented Nov 13, 2018

I've edited the index.js of the module and added

constructor(props) {
        super(props);
        this.props = props;
        Object.keys(props).map((k) => {
            if(this.props[k] != null && this.state[k] != null) this.state[k] = this.props[k];
        });
    }

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

3 participants