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.31k stars 285 forks source link

Fix show event wrong argument #255

Closed mloureiro closed 3 years ago

mloureiro commented 3 years ago

Within the documentation show event should have the color, and this PR adds it. Also, removed double instance being sent to listeners (introduced here: c7b44f0).

documentation:

}).on('show', (color, instance) => {
    console.log('show', color, instance);
simonwep commented 3 years ago

Nice additions and fixes you got there, thanks a lot!