Skip to content

Commit

Permalink
feat(DatePicker): support date week and year multiple (#1992)
Browse files Browse the repository at this point in the history
  • Loading branch information
HaixingOoO authored Dec 3, 2024
1 parent d9d8757 commit c88163b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/date-picker/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ export function flagActive(data: any[], { ...args }: FlagActiveOptions) {
const _item = item;

if (multiple) {
_item.active = (value as DateValue[]).some((val) => isSame(dayjs(val).toDate(), _item.value));
_item.active = (value as DateValue[]).some((val) => isSame(dayjs(val).toDate(), _item.value, type) && !_item.additional);
} else {
_item.active = start && isSame(item.value, start, type) && !_item.additional;
}
Expand Down

0 comments on commit c88163b

Please sign in to comment.