primeng 10 dropdown/accordion issues with angularjs/angular hybrid app

UI Components for Angular
Post Reply
devperson
Posts: 2
Joined: 09 Nov 2020, 21:00

23 Nov 2020, 20:31

I have an angularjs/angular hybrid app that I'm upgrading from 6.1.9 to 10.2.3 and primeNG 6 to 10.0.3.

I've created a demo where the issues listed below are reproducible.
https://github.com/peakpondered/primeng-10-hybrid

I posted earlier about my issues with the dropdown component here, but I previously couldn't reproduce the issue in a demo.
viewtopic.php?f=35&t=64067
The hybrid angularjs/angular app listed above can reproduce the issue.

Issue #1

When I set the optionLabel using this syntax, my option is not honoured and I see 'empty' for each item

Code: Select all

 [optionLabel]="'name'"

This only happens with Ivy enabled. When Ivy is disabled, everything works as documented.

Code: Select all

<p-dropdown
    [options]="cities"  
    [(ngModel)]="selectedCity1"
    placeholder="Select a City"
    [optionLabel]="'name'"
  ></p-dropdown>

With Ivy enabled, interpolation syntax will work fine.

Code: Select all

<p-dropdown
  [options]="cities"  
  [(ngModel)]="selectedCity1"
  placeholder="Select a City"
  optionLabel="{{optionLabel}}"
></p-dropdown>
Issue #2
The header text won't display until an accordion tab is expanded and the selected attribute is set. This only happens when ivy is disabled. This happens while specifying header as <ng-template pTemplate="header"> or <p-header>

Code: Select all

<p-accordion>
    <p-accordionTab [selected]="false">
      <ng-template pTemplate="header">
        Header
      </ng-template>
        Body
    </p-accordionTab>
  </p-accordion>

I couldn't find much info about primeng and hybrid angular apps or even if this was officially supported. I also couldn't find any existing issues that matched my descriptions.

Anyone know anything about the issues I'm having? Thanks very much!

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests