Skip to content

Commit

Permalink
Fix ColorListPicker swatches when selecting unset
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Lende committed Jun 10, 2022
1 parent 9f47a2d commit b067b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/duotone-picker/duotone-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function DuotonePicker( {
<ColorListPicker
labels={ [ __( 'Shadows' ), __( 'Highlights' ) ] }
colors={ colorPalette }
value={ value }
value={ isUnset ? undefined : value }
disableCustomColors={ disableCustomColors }
enableAlpha
onChange={ ( newColors ) => {
Expand Down

0 comments on commit b067b00

Please sign in to comment.