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

updateUI not called #94

Open
zb3 opened this issue Jun 8, 2013 · 1 comment
Open

updateUI not called #94

zb3 opened this issue Jun 8, 2013 · 1 comment

Comments

@zb3
Copy link

zb3 commented Jun 8, 2013

this can be a problem in the following situation:

  1. color in input: #00ffff
  2. user enters garbage at the end of the value ex #00ffffLOL
  3. input gets highlighted as error
  4. user removes garbage
  5. still highlighted, because updateUI is called only when color is different

solution:
if (tinycolor.equals(color, get())) {
updateUI(); // <- add this
return;
}

@bgrins
Copy link
Owner

bgrins commented Jun 10, 2013

I see this, thanks! I will put in a fix for this soon.

siliconjohn pushed a commit to siliconjohn/spectrum that referenced this issue Jun 23, 2013
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