removeEventListener exception on IE 11
See original GitHub issueGet 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"}}
{{asset.name}}
{{#if asset.registration}}<div class="description">({{asset.registration}})</div>{{/if}}
{{/power-select-multiple}}
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:
- Created 7 years ago
- Comments:16 (16 by maintainers)
Top 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 >EventTarget.removeEventListener()
removeEventListener (type, listener[, useCapture]); ... However, this method will not work on Internet Explorer 7 or earlier, since extending ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok, I’ll get a VM to debug this at some point today.
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!