Skip to content

Commit

Permalink
Hide remove control point when removing would break gradient control (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ajlende authored and noisysocks committed Dec 13, 2021
1 parent ad9c5d9 commit 20d86d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ function ControlPoints( {
);
} }
/>
{ ! disableRemove && (
{ ! disableRemove && controlPoints.length > 2 && (
<Button
className="components-custom-gradient-picker__remove-control-point"
onClick={ () => {
Expand Down

0 comments on commit 20d86d0

Please sign in to comment.