FIX: ensures non existing user/group cards are not stuck (#20195)
Prior to this fix on mobile the card-cloak would not get removed if the user/group card was leading to a non existing user/group. The fix ensures hidden class is removed each time we call show.
This commit is contained in:
parent
7482b0f703
commit
9b0b60274a
|
@ -81,6 +81,7 @@ export default Mixin.create({
|
|||
post,
|
||||
});
|
||||
|
||||
document.querySelector(".card-cloak")?.classList.remove("hidden");
|
||||
this.appEvents.trigger("user-card:show", { username });
|
||||
this._showCallback(username, $(target)).then((user) => {
|
||||
this.appEvents.trigger("user-card:after-show", { user });
|
||||
|
@ -217,7 +218,6 @@ export default Mixin.create({
|
|||
],
|
||||
});
|
||||
} else {
|
||||
document.querySelector(".card-cloak")?.classList.remove("hidden");
|
||||
this._popperReference = createPopper(target[0], this.element, {
|
||||
modifiers: [
|
||||
{ name: "eventListeners", enabled: false },
|
||||
|
|
Loading…
Reference in New Issue