How To Create My Own OnChangeComplete Function For Input Type Color On React

- 1 answer

With react-color .
I can use ready-made onChangeComplete function from react-color.

But I wonder how can I create that onChangeComplete by using input type color tag. I tried onBlur but the color won't change until user clicks or presses tab

On the other hand, using onChange keep firing updates.
Because currently I'm using redux state, so dispatching update continuously when I drag and choose color isn't a good way.

Any ideas how to create onChangeComplete?



Here is the code that how react-color implemented onChangeComplete. It is hard coded using debounce. I put the link there for anyone interested in using that solution