FIX: ensures card cloak is removed (#9582)

Repro steps for current failure:
- use mobile view
- click on a different user avatar to show user card
- click message
- close composer
- cloak is still showing and prevents any click
This commit is contained in:
Joffrey JAFFEUX 2020-04-29 13:30:34 +02:00 committed by GitHub
parent 7a946b9f5c
commit 4eed86919e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View File

@ -65,9 +65,9 @@ export default Component.extend(CardContentsBase, CleansUp, {
},
_close() {
this._super(...arguments);
this.set("group", null);
this._super(...arguments);
},
cleanUp() {

View File

@ -177,12 +177,12 @@ export default Component.extend(CardContentsBase, CanCheckEmails, CleansUp, {
},
_close() {
this._super(...arguments);
this.setProperties({
user: null,
topicPostCount: null
});
this._super(...arguments);
},
cleanUp() {

View File

@ -280,6 +280,8 @@ export default Mixin.create({
if (this.site.mobileView) {
this._unbindMobileScroll();
}
this._hide();
},
willDestroyElement() {