Skip to content

Commit

Permalink
Use white as default when user unselects a color
Browse files Browse the repository at this point in the history
  • Loading branch information
emeaguiar committed Jul 11, 2022
1 parent 5ab2d7f commit 7e14a57
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ const ColorControl = ( { defaultValue, params, onColorChange, mode } ) => {
<MaterialColorPalette
value={ color }
onChange={ value => {
onChange( value );
onChange( value ?? '#ffffff' ); // Use white as default.
} }
materialColorsOnly={ true }
/>
Expand Down

0 comments on commit 7e14a57

Please sign in to comment.