-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read properties of undefined (reading 'classList') at Function.addClass #10909
Comments
@LorenzSLA I added a comment to your fix, I think the same fix should be done in dialog.ts file. |
Added nullcheck before accessing property to avoid error described in: primefaces#10909
I updated the PR. Thanks :) |
@yigitfindikli Will this kind of fixes be included in previous release? 12.2.4 for example? |
Until the fix is added to PrimeNG and we were able to update, we added the following option to work around the issue:
|
Hi @ludopak am=nd @LorenzSLA, V12 community support is over. But will be added to v12-lts. Regards. |
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: