Skip to content

Commit

Permalink
fix: ranged value should not have selected style
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Feb 17, 2023
1 parent b56863f commit 91ffb36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/panels/WeekPanel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ function WeekPanel<DateType>(props: WeekPanelProps<DateType>) {
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,
Expand Down

0 comments on commit 91ffb36

Please sign in to comment.