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

the color picker not working with 3 length colors like #ccc #19

Open
javaharut opened this issue Jan 31, 2017 · 0 comments
Open

the color picker not working with 3 length colors like #ccc #19

javaharut opened this issue Jan 31, 2017 · 0 comments

Comments

@javaharut
Copy link

length colors are not recognized when color is changing from the input field.

I have made a solution and replacing a snippet here
it is under function hexRgbToHsv(hexRgb)

if(hexRgb.length == 4) {
var x = "#";
x+=hexRgb[1];
x+=hexRgb[1];
x+=hexRgb[2];
x+=hexRgb[2];
x+=hexRgb[3];
x+=hexRgb[3];
hexRgb = x;
}

this is rough solution later maybe you will have better ones

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

1 participant