huebee icon indicating copy to clipboard operation
huebee copied to clipboard

Add closeOnSelect option

Open ICTheMatrix opened this issue 4 years ago • 1 comments

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!

ICTheMatrix avatar May 09 '20 16:05 ICTheMatrix

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

desandro avatar May 13 '20 18:05 desandro