Skip to content

Commit

Permalink
Fix not rerendering days when inCurrentMonth changes (#1994)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmtrKovalenko committed Jul 15, 2020
1 parent 97aa0a7 commit 6ffb24b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/src/views/Calendar/Day.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ export const areDayPropsEqual = (prevProps: DayProps, nextProps: DayProps) => {
prevProps.showDaysOutsideCurrentMonth === nextProps.showDaysOutsideCurrentMonth &&
prevProps.disableHighlightToday === nextProps.disableHighlightToday &&
prevProps.className === nextProps.className &&
prevProps.inCurrentMonth === nextProps.inCurrentMonth &&
prevProps.onDayFocus === nextProps.onDayFocus &&
prevProps.onDaySelect === nextProps.onDaySelect
);
Expand Down
2 changes: 1 addition & 1 deletion lib/src/views/Calendar/SlideTransition.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const SlideTransition: React.SFC<SlideTransitionProps> = ({
}) => {
const classes = useStyles();
if (reduceAnimations) {
return <div className={className}>{children}</div>;
return <div className={clsx(classes.root, className)}>{children}</div>;
}

const transitionClasses = {
Expand Down

1 comment on commit 6ffb24b

@vercel
Copy link

@vercel vercel bot commented on 6ffb24b Jul 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.