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

Add closeOnSelect option #26

Open
ICTheMatrix opened this issue May 9, 2020 · 1 comment
Open

Add closeOnSelect option #26

ICTheMatrix opened this issue May 9, 2020 · 1 comment

Comments

@ICTheMatrix
Copy link

I would love the the option to make the picker window close automatically as soon as a color is chosen. Changing input colors would then be just two mouse clicks instead of three!

@desandro
Copy link
Member

You can get this functionality through using the change event

let hueb = new Huebee( '.color-input', {
});

hueb.on( 'change', function() {
  hueb.close();
});

see demo https://codepen.io/desandro/pen/xxwJyjz

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