Skip to content
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

Fixed #10909 - TypeError: Cannot read properties of undefined (reading 'classList') at Function.addClass #10911

Merged
merged 2 commits into from
Dec 3, 2021

Conversation

LorenzSLA
Copy link
Contributor

Proposed Fix for: #10909

Fixed access on undefined value
Copy link

@ludopak ludopak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there is the same issue on dialog.ts lines 716/717

We encounter the same issue on dialog ( not dynamicdialog) on our projects (with release 12.2.3) :

Cannot read properties of null (reading 'classList')
at Function.addClass (primeng-dom.js:12)
at Dialog.onAnimationStart (primeng-dialog.js:477)

Added nullcheck before accessing property to avoid error described in: primefaces#10909
@yigitfindikli yigitfindikli changed the title Fixed access on undefined value Fixed #10909 - TypeError: Cannot read properties of undefined (reading 'classList') at Function.addClass Dec 3, 2021
@yigitfindikli yigitfindikli merged commit bef724a into primefaces:master Dec 3, 2021
@yigitfindikli
Copy link
Contributor

Hi @LorenzSLA,

Thanks for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants