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

Cannot read properties of null (reading 'firstChild') #418

Open
VincentMolinie opened this issue Apr 11, 2024 · 1 comment
Open

Cannot read properties of null (reading 'firstChild') #418

VincentMolinie opened this issue Apr 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@VincentMolinie
Copy link

VincentMolinie commented Apr 11, 2024

I got this error that happens randomly in my tests, it happens when I open the emoji picker element.
It throws the error but the emoji picker still seems to work.
It might require a little defensive programming

I'm using emoji-picker-element 1.21.1.

Capture d’écran 2024-04-11 à 10 30 05

@nolanlawson
Copy link
Owner

The error seems to be coming from here:

range.selectNode(node.firstChild)

Can you test in the latest version (1.21.3)? Which browser are you using? Can you share your test code? Otherwise I don't have much context to figure out where the bug is coming from...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants