Skip to content

Commit

Permalink
Fix #4259: Calendar unique month key for multiple months (#4260)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Apr 20, 2023
1 parent 08bbfbc commit 0833702
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/lib/calendar/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -2821,9 +2821,10 @@ export const Calendar = React.memo(

const dateViewGrid = createDateViewGrid(monthMetaData, weekDays, index);
const header = props.headerTemplate ? props.headerTemplate() : null;
const monthKey = monthMetaData.month + "-" + monthMetaData.year;

return (
<div key={monthMetaData.month} className="p-datepicker-group">
<div key={monthKey} className="p-datepicker-group">
<div className="p-datepicker-header">
{header}
{backwardNavigator}
Expand Down

0 comments on commit 0833702

Please sign in to comment.