Fix click to close colorpicker

An opened colorpicker cannot be closed by clicking the button again.