simonwep / pickr

🎨 Flat, simple, multi-themed, responsive and hackable Color-Picker library. No dependencies, no jQuery. Compatible with all CSS Frameworks e.g. Bootstrap, Materialize. Supports alpha channel, rgba, hsla, hsva and more!
https://simonwep.github.io/pickr
MIT License
4.32k stars 284 forks source link

Feature Request - Close the popup on clicking save. #304

Closed sandeepdotcode closed 3 years ago

sandeepdotcode commented 3 years ago

I tried using Pickr in a sketchpad website I'm building and I find it rather annoying and counterintuitive that the popup doesn't close itself when save button is clicked. I think it would be much better if the pickr popup closes automatically like the html element <input type="color"> does.

simonwep commented 3 years ago

That's rather a change in behavior than a feature-request. Use the save event and just call pickr.hide() :)