Alpha Picker not rendering the color value
I have a custom color picker that uses the CompactPicker and the Alpha Picker. I re-use this picker across different draw tools. When I pick a different draw tool, different default values for the picker gets passed down. During the initial phase its drawing fine, but during the next state change, the Alpha picker is still showing the old value from the previous draw.  Please advise , as to why this is happening?

  let rgbcolor = {
            r:color[0],
            g:color[1],
            b:color[2],
            a:color[3]
        }

 <AlphaPicker width="100px" height='10px' onChange={handleColorChange} color={rgbcolor}  />


https://gist.github.com/lingpri/f514e91e393e1583d1987f6582dc6e4f
