From 269d1e72cb159449b862fd6577b1ffdc21d3087b Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 9 Apr 2023 09:44:00 +0900 Subject: fix(frontend): ユーザープレビューが表示されない問題を修正 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix #10540 --- packages/frontend/src/directives/user-preview.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/frontend/src') diff --git a/packages/frontend/src/directives/user-preview.ts b/packages/frontend/src/directives/user-preview.ts index ae12f2670a..397f449bd1 100644 --- a/packages/frontend/src/directives/user-preview.ts +++ b/packages/frontend/src/directives/user-preview.ts @@ -13,8 +13,6 @@ export class UserPreview { this.el = el; this.user = user; - this.attach(); - this.show = this.show.bind(this); this.close = this.close.bind(this); this.onMouseover = this.onMouseover.bind(this); @@ -22,6 +20,8 @@ export class UserPreview { this.onClick = this.onClick.bind(this); this.attach = this.attach.bind(this); this.detach = this.detach.bind(this); + + this.attach(); } private show() { -- cgit v1.3.1-freya