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

TypeError: Cannot read property 'handleEvent' of null #230

Open
pix666 opened this issue Jun 18, 2020 · 3 comments
Open

TypeError: Cannot read property 'handleEvent' of null #230

pix666 opened this issue Jun 18, 2020 · 3 comments
Labels
bug good first PR Easy issues that are good for a first contribution

Comments

@pix666
Copy link

pix666 commented Jun 18, 2020

This code:

window.addEventListener("test", null, options);

causes a TypeError:

bliss.shy.js:577 Uncaught TypeError: Cannot read property 'handleEvent' of null
at eval (bliss.shy.js:577)
at eval (bliss.shy.js:11)
at Object.$.Element.<computed> (bliss.shy.js:835)
at Function.$.<computed> [as bind] (bliss.shy.js:857)
at EventTarget.addEventListener (bliss._.js:61)

The above code is commonly used for checking for passive option support.
Link: developer.mozilla.org

@LeaVerou
Copy link
Owner

Confirmed. This would be a very easy first PR, so I'm gonna mark it as such.

@LeaVerou LeaVerou added bug good first PR Easy issues that are good for a first contribution labels Jun 20, 2020
@DudhaneShrey86
Copy link

Is this issue still open? I have created a pull request.
Just added an "if(options != null)" check in the bind function.

@Nervniyak
Copy link

Any news on that? Would be really nice to see that fixed already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug good first PR Easy issues that are good for a first contribution
Projects
None yet
Development

No branches or pull requests

4 participants