Skip to content

Fix: Uncaught TypeError: dismissBtn is null#19

Open
BrianHenryIE wants to merge 2 commits intoWPTT:masterfrom
BrianHenryIE:fix-null-dismissBtn
Open

Fix: Uncaught TypeError: dismissBtn is null#19
BrianHenryIE wants to merge 2 commits intoWPTT:masterfrom
BrianHenryIE:fix-null-dismissBtn

Conversation

@BrianHenryIE
Copy link

I'm sometimes getting

Uncaught TypeError: dismissBtn is null

This checks the result of document.querySelector before adding the handler.

@tylercollier
Copy link

tylercollier commented Jun 1, 2024

Would someone please merge this (and cut a new version on packagist)?

Co-authored-by: Ari Stathopoulos <aristath@gmail.com>
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