React-color: Unable to update alpha channel

Created on 20 Jul 2018  路  3Comments  路  Source: casesandberg/react-color

Upon setting state, the picker (SketchPicker) fails to update its internal state for alpha.

Steps to reproduce:

  1. Open the picker
  2. Select a color
  3. Select an alpha (opacity)

Upon setState the color is updated properly. The alpha, however stays the same. Please, note that the alpha is properly updated in the color object. However, the picker always displays alpha 100 in the alpha drag range input.

All 3 comments

I figured it out - my initial state object schema was a bit different that the required one. Thanks for the great color picker!

any idea for this ? plz

Was this page helpful?
0 / 5 - 0 ratings