primeng icon indicating copy to clipboard operation
primeng copied to clipboard

V9: Step-Control - corrupted view

Open morula opened this issue 6 years ago • 5 comments

[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

Plunkr Case (Bug Reports) Working (view is correct) https://stackblitz.com/edit/primeng9-step

View is corrupted NG9Test.zip

Current behavior The view of the steps is under Angular 9 corrupted. I can reproduce this behaviour localy, but not with the linked stackblitz-demo. So i attached the NG-Project (NG9Test.zip) with which the behaviour can be reproduce.

View with Angular 9: grafik

Expected behavior View exptected (like Angular 8): grafik

Minimal reproduction of the problem with instructions Create new NG-Project ...

  • ng n NG9Test
  • Add primeng packages
  • modify/add style for primeng
  • modify app.module.ts
  • modify app.component.ts
  • modify app.component.html

Please tell us about your environment:

  • OS: Windows 10
  • Node.js: 13.8.0
  • Angular: 9.0.0
  • PrimeNG: 9.0.0-rc.4
  • Browser:
  • Firefox 72.0.2
  • Chrome 80.0.3987.87

morula avatar Feb 11 '20 10:02 morula

I've encountered the same issue, and it happens in other components as well (like p-messages for example). After some time of investigation i found out the cause, but it's not the real issue, all these components have static class, dynamic [class] binding and directive [ngClass], and for some reasons dynamic [class] binding just clears out everything what was set in static class binding, even if you pass null or undefined in styleClass of step item model (but empty string works fine!).

For now, as a workaround, you can just set empty strings in every styleClass: '' field of step definition.

It's clearly not right, because angular should just merge classes from different sources, if these classes are different. It's definitely connected with new ng rendering engine Ivy because it works fine if Ivy is opt-out.

Hope that'll help to fix this issue quicker.

Gretam11 avatar Feb 11 '20 12:02 Gretam11

Good news, looks like angular team consider it as a bug as well, and they are going to deliver fix for that soon! https://github.com/angular/angular/issues/35335

Gretam11 avatar Feb 12 '20 07:02 Gretam11

Angular v9.0.2 has been released which should resolve this issue.

Mysame avatar Feb 20 '20 12:02 Mysame

The problem is resolved with Angular v9.0.2

morula avatar Feb 20 '20 13:02 morula

The problem is resolved with Angular v9.0.2

I am still facing that issue in Angular v9.0.2

gaut7 avatar Mar 30 '20 14:03 gaut7