primeng icon indicating copy to clipboard operation
primeng copied to clipboard

'appendTo="body" will scroll the dropdown menu along with the body/container scroll. Can this be made fixed?

Open Jooooooooooey opened this issue 7 years ago • 23 comments

Screen Shot 2019-07-16 at 2 49 23 PM

In the beginning, the issue was the hidden dropdown menu. I solved this by adding 'appendTo="body"' within p-dropdown. Now the dropdown options are showing up, however, it will scroll the dropdown menu along with the body/container scroll. Can someone help me with this problem? Thanks in advance!

				<td class="ui-resizable-column" [class.lookup-column]="col.editFieldType === 'Lookup'" [pEditableColumn]="rowData" [pEditableColumnField]="col.field"
					*ngIf="isEditable(rowData, col.editable, col.field); else readOnlyCell">
					<span class="ui-column-title">{{col.label}}</span>
					<p-cellEditor [style]=" {'overflow':'visible' }">
						<ng-template pTemplate="input">
							<input type="text" [(ngModel)]="rowData[col.field]" *ngIf="col.editFieldType === 'String'" (change)="onEditComplete(rowData, col.field)" maxlength="{{!col.maxlength}}">
							<textarea rows="3" type="textarea" [(ngModel)]="rowData[col.field]" *ngIf="col.editFieldType === 'TextArea'" (change)="onEditComplete(rowData, col.field)" maxlength="{{col.maxlength}}"></textarea>
							<oneip-calender [(dateField)]="rowData[col.field]" (selectedDate)="rowData[col.field] = $event; onEditComplete(rowData, col.field);" *ngIf="col.editFieldType === 'Date'"></oneip-calender>
							<oneip-user-picker *ngIf="col.editFieldType === 'UserLookUp'" [placeholder]="'Enter name'" [qcguids]="rowData" (userSelection)="rowData[col.field] = $event; onEditComplete(rowData, col.field);"></oneip-user-picker>
							<p-dropdown appendTo="body" [autoWidth]="false" *ngIf="col.editFieldType === 'Lookup'" placeholder="Select" (onChange)="onSelect($event, rowData, col.field)" [options]="getLookupValues(col.field)"></p-dropdown>
						</ng-template>
						<ng-template pTemplate="output">
							<span [innerHTML]="!!rowData[col.field] ? format(col, rowData[col.field], rowData): '&nbsp;'" class="editable-icon" title="Click to Edit"></span>
						</ng-template>
					</p-cellEditor>
				</td>

Jooooooooooey avatar Jul 16 '19 22:07 Jooooooooooey

1+

hakim-dc avatar Oct 03 '19 14:10 hakim-dc

@cagataycivici any future fixes for this.

hakim-dc avatar Oct 03 '19 14:10 hakim-dc

  • that is realy terrible. The same for Menu + popup="true"

morozp avatar Oct 24 '19 18:10 morozp

Same problem = Menu + popup="true", any updates?

haroldvz avatar Nov 18 '19 16:11 haroldvz

+1 for https://www.primefaces.org/primeng/#/tieredmenu in popup mode

wiesnery avatar Dec 03 '19 09:12 wiesnery

Unable to replicate with PrimeNG 9, if the issue persists please create a new ticket with a test case reproducing the issue e.g. stackblitz or a github repo and it will be reviewed by our team once again.

cagataycivici avatar Mar 29 '20 13:03 cagataycivici

@cagataycivici, can you please reopen & fix this? I've reproduced this on your latest PrimeNG 9.1.3 ---> HERE <---

I've created a new ticket #9024 with a test case reproducing the issue just like you requested. Please review it as this issue is a real problem that has been around for a while...

nironater avatar Jul 09 '20 14:07 nironater

@cagataycivici This issue is still there in 9.0.6. Please reopen this ticket.

Abhishek2kr avatar Aug 13 '20 11:08 Abhishek2kr

Or Atleast share when this fix gonna come. @cagataycivici

Abhishek2kr avatar Aug 13 '20 13:08 Abhishek2kr

I've some problem. @cagataycivici

Walteann avatar Aug 17 '20 15:08 Walteann

@Walteann Can you share the style which you are applying?

Abhishek2kr avatar Aug 17 '20 16:08 Abhishek2kr

And share how your dropdown is coming

Abhishek2kr avatar Aug 17 '20 16:08 Abhishek2kr

@Abhishek2kr I simuled my problem in Stackblitz

when I've appentTo=Body, image

In example 1 it would solve if I remove the appendTo and the styles overflow-y and max-height, but I need that there is maximum height

Walteann avatar Aug 17 '20 17:08 Walteann

I'm getting this issue even on "11.0.0-rc.1" release

AjeetRE avatar Dec 18 '20 12:12 AjeetRE

Hey I debug my codebase and I found z-index was applied from parent template after removing that it got fixed. So pls check once.

Abhishek2kr avatar Dec 18 '20 12:12 Abhishek2kr

I am also facing similar issue in 11.0.0. Any workaround?

ChellappanRajan avatar Nov 16 '21 16:11 ChellappanRajan

Same issue here.

AjayPolke6817 avatar Mar 24 '22 09:03 AjayPolke6817

Hello! Still the issue on v15.0.0 : https://stackblitz.com/edit/primeng-dropdown-arrow-navigation

Bonbons avatar Dec 13 '22 23:12 Bonbons

I'm getting this issue in PrimeVue as well.

medemi68 avatar Dec 06 '23 09:12 medemi68

Why is this closed ? @cagataycivici it still exists

saver711 avatar Jun 23 '24 08:06 saver711