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

Incorrect width with using hues #17

Closed
osynavets opened this issue Sep 13, 2018 · 3 comments
Closed

Incorrect width with using hues #17

osynavets opened this issue Sep 13, 2018 · 3 comments

Comments

@osynavets
Copy link

i initialize huebee in html
if i change number of hues ( <input class="color-input" data-huebee data-huebee='{ "hues": "1" }'/> )
the width of element become very huge
huebee_bug
(width - 2000px on pic)

@desandro
Copy link
Member

whoa! That's definitely a bug. Thanks for reporting this. I'll have to take a look.

@desandro
Copy link
Member

Ah, thanks for the PR. Rather than converting strings to integers, you could just set the value as an integer "hues": 1. This is valid JSON

<input class="color-input" data-huebee='{ "hues": 1 }'/>

@osynavets
Copy link
Author

ohh, i'm sorry. my bad. but anyway i think it's better to check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants