Skip to content

Commit

Permalink
fix(ColorPicker): fix The color of the slider button above the modifi…
Browse files Browse the repository at this point in the history
…ed color remains unchanged (#2615)

Co-authored-by: Heising <[email protected]>
  • Loading branch information
HaixingOoO and Heising authored Nov 28, 2023
1 parent 6b96937 commit db81348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/color-picker/components/panel/linear-gradient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const LinearGradient = (props) => {
setSelectedId(color.gradientSelectedId);
selectedRef.current = color.gradientSelectedId;
colors.current = cloneDeep(color.gradientColors);
}, [color]);
}, [color.gradientColors, color?.gradientDegree, color.gradientSelectedId, color.value, color.saturation]);

const updateSliderRect = () => {
const rect = refSlider.current.getBoundingClientRect();
Expand Down

0 comments on commit db81348

Please sign in to comment.