Unsubscription error when running any default component test using Steps #10379
Labels
LTS-FIXED-10.1.4
Fixed in PrimeNG LTS 10.1.4
LTS-FIXED-11.4.7
Fixed in PrimeNG LTS 11.4.7
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
If the Steps component is created, but not initialized, then the unsubscription in the ngDestroy method fails, because the subscription property is not set. This happens for instance in the default tests created by angular-cli which just test if a component can be created. If the component uses Steps, then you get an error in the console log and start to wonder what's happening here.
To replicate the bug, add the following spec to
src\app\components\steps\steps.spec.ts
in the PrimeNG source code:The run the tests with
ng tests
and look at the output in the console. You will see something likeAngular version: 12.0.5
PrimeNG version: 12.0.1
I have revently submitted a very simple fix as PR #9881.
The text was updated successfully, but these errors were encountered: