mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
chore: add colorPicker missing memo deps (#55446)
This commit is contained in:
@@ -79,7 +79,7 @@ const ColorTrigger = forwardRef<HTMLDivElement, ColorTriggerProps>((props, ref)
|
||||
default:
|
||||
return alpha < 100 ? `${hexString.slice(0, 7)},${alpha}%` : hexString;
|
||||
}
|
||||
}, [color, format, showText, activeIndex]);
|
||||
}, [color, format, showText, activeIndex, locale.transparent, colorTextCellPrefixCls]);
|
||||
|
||||
// ============================= Render =============================
|
||||
const containerNode = useMemo<React.ReactNode>(
|
||||
|
||||
@@ -57,7 +57,7 @@ export default function useModeColor(
|
||||
pushOption('gradient', locale.gradientColor);
|
||||
|
||||
return [optionList, modes];
|
||||
}, [mode]);
|
||||
}, [mode, locale.singleColor, locale.gradientColor]);
|
||||
|
||||
// ======================== Post ========================
|
||||
// We need align `mode` with `color` state
|
||||
|
||||
Reference in New Issue
Block a user