Primeng: p-calendar inside p-table filter z-index

Created on 11 Apr 2018  路  6Comments  路  Source: primefaces/primeng

I believe this is a z-index issue :

When using within a template

<p-calendar *ngSwitchCase="'termStartDate'" [showIcon]="true"></p-calendar>

When clicking on the calendar to open it - it is hidden under the table itself:
image

Most helpful comment

adding appendTo="body" fixed this for me - thank you

All 6 comments

Found a workaround here

https://github.com/primefaces/primeng/issues/3940

<p-calendar *ngSwitchCase="'termStartDate'" [style]="{'position': 'fixed', 'overflow': 'visible', 'z-index': '999'}" [showIcon]="true"></p-calendar>

Actually that isn't a work around at all - it's a 'fixed' position so when you scroll it doesn't maintain it's position.

Easier "fix" but similarly flawed: add appendTo="body" to p-calendar.

adding appendTo="body" fixed this for me - thank you

I'm sorry to put a comment on this after it has been already closed, but with the appendTo="body" workaround, when you scroll it still doesn't maintain its position...

Do you know any other solution for this?

For me, I had to set appendTo="body" and baseZIndex = 1050 because I have a navbar with z-index: 1020.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mitosandov picture mitosandov  路  3Comments

gatapia picture gatapia  路  3Comments

Helayxa picture Helayxa  路  3Comments

jisqaqov picture jisqaqov  路  3Comments

KannanMuruganmony picture KannanMuruganmony  路  3Comments