miguelcobain / ember-paper

The Ember approach to Material Design.
http://miguelcobain.github.io/ember-paper
MIT License
889 stars 331 forks source link

Assertion Failed: calling set on destroyed object in FocusableMixin#handleMouseLeave #1161

Open boydkr opened 3 years ago

boydkr commented 3 years ago

This only happens in Safari, as far as I can tell.

[Error] Error: Assertion Failed: calling set on destroyed object: <firestorm@component:paper-button::ember5053>.hover = false
    assert (vendor.js:52288)
    set (vendor.js:31232)
    handleMouseLeave (vendor.js:199445)
    superWrapper (vendor.js:47031)
    superWrapper

handleMouseLeave refers to https://github.com/miguelcobain/ember-paper/blob/master/addon/mixins/focusable-mixin.js#L85

The PaperButton in question is of the form

<PaperButton data-test-button-next @label="Next" @href={{href-to "<my-app-route>"}} />

so nothing fancy.

This error happens after the transition to the new route occurs, and the user moves the mouse.

boydkr commented 3 years ago

Ember paper version 1.0.0-beta.31 Ember source 3.16.6