primeng
primeng copied to clipboard
p-calendar shows a redundant week on the calendar
I'm submitting a ... (check one with "x")
[X] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35
Current behavior When less than 6 rows are needed for the calendar in order to show the weeks of the month, a redundant line will show up.
Expected behavior I expect to see a blank space instead of the redundant line.
Minimal reproduction of the problem with instructions
I used p-calendar in the following way:
<p-calendar [(ngModel)]="currentTime" [minDate]="minDate" [maxDate]="maxDate" placeholder="all"
[locale]="'general.time.calendar.lang-definitions' | translate" [selectOtherMonths]="true"
class="my-calendar" [showIcon]="true" [defaultDate]="serverLocalTime" [showButtonBar]="true"
[inline]="true" clearButtonStyleClass="calendar-hide-button" todayButtonStyleClass="calendar-today-button">
<p-footer>
<!-- Something -->
</p-footer>
What is the motivation / use case for changing the behavior?
I'm using the inline version of p-calendar and in several month a redundant week is shown on the calendar (image attached
)
Angular version: 6.1.0
PrimeNG version: 6.0.2
Browser: All
Language: TypeScript 2.8.4