Closed maxymczech closed 4 years ago
Hello. Lately I have been getting this error message from ember-cli-flash in Sentry console of a project, error comes from addon-tree-output/ember-cli-flash/components/flash-message.js:
ember-cli-flash
addon-tree-output/ember-cli-flash/components/flash-message.js
willDestroyElement() { this._super(...arguments); this.element.removeEventListener('mouseenter', this._mouseEnter); this.element.removeEventListener('mouseleave', this._mouseLeave); }
Is it possible to wrap this call in if (this.element) { ... }?
if (this.element) { ... }
Thank you for posting. This should be fixed now by https://github.com/poteto/ember-cli-flash/pull/315
Hello. Lately I have been getting this error message from
ember-cli-flash
in Sentry console of a project, error comes fromaddon-tree-output/ember-cli-flash/components/flash-message.js
:Is it possible to wrap this call in
if (this.element) { ... }
?