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

Gestures.handleNative sometimes throws "Unable to get property mousedown of undefined or null reference" in IE11 #2641

Closed
wicksell opened this issue Oct 28, 2015 · 2 comments
Assignees
Labels

Comments

@wicksell
Copy link

When using <paper-dropdown-menu> and selecting an item in IE11 I get the error "Unable to get property mousedown of undefined or null reference". The error originates from Gestures.handleNative. The statement node[GESTURE_KEY] is undefined. If i add the following line

    if (!gobj) gobj = unwrap(node)[GESTURE_KEY];

everything works perfect. So the problem seems to be that the node is not wrapped when passed to Gestures.add but is when the event is received.

@wicksell
Copy link
Author

I have investigated my problem further and found that it may be related to #1001. A change to iron-overlay-behavior adds a gesture listener on document, see PolymerElements/iron-overlay-behavior@ad1cda0. On registration document is not wrapped but webcomponentsjs always wrap events when Shadow DOM is polyfilled so in Gestures.handleNative the event target is wrapped and thus the property GESTURE_KEY is not available.

@dfreedm dfreedm self-assigned this Nov 4, 2015
@dfreedm
Copy link
Member

dfreedm commented Nov 4, 2015

Just need to land webcomponents/webcomponentsjs#434 first, then I can make this work as expected.

dfreedm added a commit that referenced this issue Nov 4, 2015
Test with SD polyfill and native ShadowDOM
Requires webcomponents/webcomponentsjs#434

Fixes #2641
This was referenced Nov 4, 2015
@dfreedm dfreedm added the p1 label Nov 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants