From 91ffb3609ada8abbcace22837aefd049923164cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Fri, 17 Feb 2023 16:41:03 +0800 Subject: [PATCH] fix: ranged value should not have selected style --- src/panels/WeekPanel/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/panels/WeekPanel/index.tsx b/src/panels/WeekPanel/index.tsx index 78cc8c786f70..cd053925f38f 100644 --- a/src/panels/WeekPanel/index.tsx +++ b/src/panels/WeekPanel/index.tsx @@ -64,7 +64,8 @@ function WeekPanel(props: WeekPanelProps) { const isRangeStart = isSameWeek(generateConfig, locale.locale, rangeStart, date); const isRangeEnd = isSameWeek(generateConfig, locale.locale, rangeEnd, date); return classNames(rowPrefixCls, { - [`${rowPrefixCls}-selected`]: isSameWeek(generateConfig, locale.locale, value, date), + [`${rowPrefixCls}-selected`]: + !rangedValue && isSameWeek(generateConfig, locale.locale, value, date), // Patch for hover range [`${rowPrefixCls}-range-start`]: isRangeStart,