react-component/color-picker

onChange called onOpen

ZeHiro opened this issue · 6 comments

When clicking on the closed picker, with a defaultColor set, the onChange callback is called, even before the user even changes the value.
I expect the onChange callback to be called only when the user changes the value.

Looking at the code, this seems to be wanted :

this.props.onChange(this.state);

I don't undertand why.

+1

Anyone @react-component to tackle this problem ?

Anyone want make a PR ?

if the fix is only to delete the this.props.onChange i can, but I am not able to test all the possiblities.

I created the PR #59