Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

removeEventListener exception on IE 11

See original GitHub issue

Get this error when navigating away from a route with a dropdown in IE 11 when i have the developer tools open and i run a production build. Can’t be sure it happens when the tools are closed and it doesn’t happen when using a development build.

Dropdown declaration.

{{#power-select-multiple renderInPlace=true options=assets selected=filteredAssets searchField="name" placeholder=(t 'track.trackEventsChooseAssetsToShow') onchange=(action "assetFilterChanged") as |asset|}}
              {{icon-asset asset=asset class="text-bottom" width="20px" height="20px"}}
              {{#if asset.registration}}<div class="description">({{asset.registration}})</div>{{/if}}

Stack Trace

"TypeError: Unable to get property 'removeEventListener' of undefined or null reference
   at removeGlobalEvents (https://myapp/assets/vendor-d42d5df2bd86ce26959f3ab73da5b5bd.js:34:23452)
   at _teardown (https://myapp/assets/vendor-d42d5df2bd86ce26959f3ab73da5b5bd.js:34:24415)
   at willDestroyElement (https://myapp/assets/vendor-d42d5df2bd86ce26959f3ab73da5b5bd.js:34:20486)
   at r (https://myapp/assets/vendor-d42d5df2bd86ce26959f3ab73da5b5bd.js:11:30486)
   at trigger (https://myapp/assets/vendor-d42d5df2bd86ce26959f3ab73da5b5bd.js:16:814)
   at r (https://myapp/assets/vendor-d42d5df2bd86ce26959f3ab73da5b5bd.js:11:30486)
   at d.prototype.willDestroyElement (https://myapp/assets/vendor-d42d5df2bd86ce26959f3ab73da5b5bd.js:9:10395)
   at d.prototype.remove (https://myapp/assets/vendor-d42d5df2bd86ce26959f3ab73da5b5bd.js:"

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

cibernoxcommented, Aug 31, 2016

Ok, I’ll get a VM to debug this at some point today.

Kilowhiskycommented, Sep 1, 2016

Yea that’ll fix it. Though I’m not sure the method even needs to be called on willdestroy(). Didn’t check that case though.

Good enough for me!

On Aug 31, 2016, at 7:02 PM, Jim wrote:

@Kilowhisky can you check if #145 fixes your issue?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when calling removeEventListener in IE11/Edge on ...
I created a JSFiddle to showcase the behavior. I've observed IE11/Edge behaves one way and Chrome and Firefox behave another way and I'm...
Read more >
removeEventListener method (Internet Explorer)
Unregisters a previously registered event listener of the given type. Note These APIs can only be used with F12 developer tools and the ......
Read more >
Regular links not working in IE11 #1911 - GitHub
What is actually happening? The URL is changing but the page content stays the same. (see video on Youtube). This was working up...
Read more >
EventTarget.addEventListener() - Web APIs | MDN
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered ...
Read more >
removeEventListener (type, listener[, useCapture]); ... However, this method will not work on Internet Explorer 7 or earlier, since extending ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found