mdbassit / Coloris

A lightweight and elegant JavaScript color picker. Written in vanilla ES6, no dependencies. Accessible.
https://coloris.js.org/examples.html
MIT License
443 stars 58 forks source link

No way to access the current element? #103

Closed scratchoo closed 1 year ago

scratchoo commented 1 year ago

Hi, first of all thank you for this cool lib, however I find it strange to not able to access the current input on the onChange function, how you can get the input that the color changed for?

mdbassit commented 1 year ago

Hi, first of all thank you for this cool lib, however I find it strange to not able to access the current input on the onChange function, how you can get the input that the color changed for?

Your condescending way of phrasing this aside, thank you for reporting this! It wasn't implemented simply because I don't need it, and seeing how this is a tool I created for my own use, there is nothing strange about not adding something I don't need.

Anyway, I will add that soon as it does make sense.

melloware commented 1 year ago

0.20.0 has been published to NPM with this fix