TypeError: Cannot read properties of undefined (reading 'classList') at Function.addClass #10909
Labels
LTS-FIXED-12.2.4
Fixed in PrimeNG LTS 12.2.4
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Hello everybody,
I'm submitting a ...
Plunkr Case (Bug Reports)
https://github.com/LorenzSchl/primeng-classlist-null-example
For some reason the error does not show in stackblitz. For me it only "works" or better fails with ng serve and chrome.
Current behavior
The following error is thrown:
Expected behavior
No error to be thrown.
Minimal reproduction of the problem with instructions
Hard to repoduce. If the dialog is openend, closed, repoened while closing animation is still running (after onAnimationStart and before onAnimationEnd) and closed after the onAnimationEnd. The wrapper will already have been nulled but the onAnimationStart(fromStage: visible, toStage: void) will try to add a class to the wrapper.
What is the motivation / use case for changing the behavior?
The bug was introduced in the following commit: 5365533
Please tell us about your environment:
Windows 10 Version 1909 (Build 18363.1916), IntelliJ IDEA 2021.2, NPM 8.1.0
node --version
= v16.13.0The text was updated successfully, but these errors were encountered: