adopted-ember-addons / ember-cli-flash

Simple, highly configurable flash messages for ember-cli
https://www.npmjs.com/package/ember-cli-flash
MIT License
355 stars 113 forks source link

Using `mouseLeave` event handler methods in components has been deprecated #302

Closed josemarluedke closed 4 years ago

josemarluedke commented 5 years ago

Using the latest Ember canary there is a new deprecation for mouseLeave and mouseEnter

https://github.com/poteto/ember-cli-flash/blob/09ffdfb0dc6fd8691d098b04c952ab955889e13a/addon/components/flash-message.js#L83-L95

bugsnag.js:662 DEPRECATION: Using `mouseLeave` event handler methods in components has been deprecated. [deprecation id: ember-views.event-dispatcher.mouseenter-leave-move] See https://emberjs.com/deprecations/v3.x#toc_component-mouseenter-leave-move for more details.
        at logDeprecationStackTrace (http://localhost:4200/assets/vendor.js:49220:21)
        at HANDLERS.<computed> (http://localhost:4200/assets/vendor.js:49317:9)
        at raiseOnDeprecation (http://localhost:4200/assets/vendor.js:49247:9)
        at HANDLERS.<computed> (http://localhost:4200/assets/vendor.js:49317:9)
        at invoke (http://localhost:4200/assets/vendor.js:49329:9)
        at deprecate (http://localhost:4200/assets/vendor.js:49285:28)
        at Class.init (http://localhost:4200/assets/vendor.js:16178:73)
        at Class.superWrapper (http://localhost:4200/assets/vendor.js:43644:22)
        at Class.init (http://localhost:4200/assets/vendor.js:80091:19)

These events should probably be migrated to use modifiers.