Input type=color onchange always triggers (REACT)

Hi fellow coders,

I’m trying to use <input type="color" /> with React, which works fine on Windows/Chrome, since the event is triggered only when clicking on “OK”. Linux has a different behaviour, the change event is triggered always, when changing the color.

Any idea, how I could solve this, besides using a ready made react component? I tried debouncing it, but that leads to other problems.

Thanks in advance!


But does color picker on Linux have “OK” button?

No, unfortunately not





Im just talking about Chrome, FF implentation of input type color is fine.