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 Dec 7, 2021
1 parent bd827c0 commit a4f3deb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ function ControlPoints( {
);
} }
/>
{ ! disableRemove && (
{ ! disableRemove && controlPoints.length > 2 && (
<Button
className="components-custom-gradient-picker__remove-control-point"
onClick={ () => {
Expand Down

0 comments on commit a4f3deb

Please sign in to comment.