dropdown appendTo="body" attaches control itself to body

UI Components for Angular
Post Reply
mmikeyy
Posts: 127
Joined: 11 May 2016, 17:39

29 Oct 2016, 17:25

I understand that appendTo is supposed to allow us to attach the overlay containing the choices to the body (for example) to avoid it being trimmed by the dropdown component's container boundaries.

It seems that this option is now (beta 20) affecting the control itself, not just the overlay. I put the dropdown component in a form in a dialog with appendTo="body", and I find the control at the bottom of the body (totally out of sight in a long page...) instead of where it should appear in the dialog.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

29 Oct 2016, 17:41

I will check and reply.

srbhk
Posts: 3
Joined: 14 Mar 2017, 12:22

14 Mar 2017, 12:28

Any updates to this issue?

In my case, the overlay is going behind the dialog.

Code: Select all

<p-dropdown [options]="allStatus" [(ngModel)]="status" formControlName="status" autoWidth appendTo="body"></p-dropdown>

srbhk
Posts: 3
Joined: 14 Mar 2017, 12:22

20 Mar 2017, 16:07

Any updates, please?

srbhk
Posts: 3
Joined: 14 Mar 2017, 12:22

22 Mar 2017, 15:09

Was able to fix this.

The issue turned out to be the custom z-index value I was using for p-dialog. Removed that and the dropdown panel no longer goes behind the dialog. :D

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

22 Mar 2017, 18:37

Yes, I also could not replicate it today.

andrea.b
Posts: 7
Joined: 23 Feb 2017, 14:18

05 Apr 2017, 15:11

Hi Optimus Prime,

please see my posts #154371 and #154550.

Because our requirement is, that our programs have to work well in Firefox, Chrome and IE, so I can't choose the lesser evil.
Do you have another idea to solve this problem?

KR Andrea.

alexey93
Posts: 65
Joined: 24 Jan 2017, 14:09

06 Apr 2017, 08:33

andrea.b wrote:
05 Apr 2017, 15:11
Hi Optimus Prime,

please see my posts #154371 and #154550.

Because our requirement is, that our programs have to work well in Firefox, Chrome and IE, so I can't choose the lesser evil.
Do you have another idea to solve this problem?

KR Andrea.
IE is not even fully supported by angular itself...

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 20 guests