diff --git a/components/tour/index.tsx b/components/tour/index.tsx index c56fbf1fe2..538d9dc036 100644 --- a/components/tour/index.tsx +++ b/components/tour/index.tsx @@ -40,7 +40,7 @@ const Tour: React.FC & { _InternalPanelDoNotUseOrYouWillBeFired: type [`${prefixCls}-primary`]: (step.type ?? type) === 'primary', }), })), - [steps, type], + [prefixCls, steps, type], ); const builtinPlacements: TourProps['builtinPlacements'] = (config) =>