Skip to content

Commit

Permalink
Refactor #1553
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Sep 8, 2020
1 parent 23393cf commit 0315a5f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/components/calendar/Calendar.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
}

/* Multiple Month DatePicker */
.p-datepicker-groups {
.p-datepicker-multiple-month .p-datepicker-group-container {
display: flex;
}

Expand Down
14 changes: 5 additions & 9 deletions src/components/calendar/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -2594,15 +2594,11 @@ export class Calendar extends Component {
return this.renderMonth(monthMetaData, index);
});

if (this.props.numberOfMonths > 1) {
return (
<div className="p-datepicker-groups">
{groups}
</div>
)
}

return groups;
return (
<div className="p-datepicker-group-container">
{groups}
</div>
)
}

renderDateView() {
Expand Down

0 comments on commit 0315a5f

Please sign in to comment.