huebee
huebee copied to clipboard
Add closeOnSelect option
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!
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