Skip to content

Commit

Permalink
fix(color-picker): 修复切换渐变节点 hue 饱和度未更新的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
insekkei committed Jul 18, 2022
1 parent 9434ae5 commit f5430d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/color-picker/components/panel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ const Panel = forwardRef((props: ColorPickerProps, ref: MutableRefObject<HTMLDiv
break;
case 'selectedId':
colorInstanceRef.current.gradientSelectedId = payload as string;
setUpdateId((prevId) => prevId + 1);
break;
case 'colors':
colorInstanceRef.current.gradientColors = payload as GradientColorPoint[];
Expand Down

0 comments on commit f5430d5

Please sign in to comment.