From f64e5a17eada23c43b6164ec07df9cb71b6659af Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 1 Feb 2020 09:45:30 +0900 Subject: [PATCH] Fix bug --- src/client/directives/user-preview.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/client/directives/user-preview.ts b/src/client/directives/user-preview.ts index a6b76208d..9c3249d57 100644 --- a/src/client/directives/user-preview.ts +++ b/src/client/directives/user-preview.ts @@ -51,6 +51,11 @@ export default { clearTimeout(self.hideTimer); self.hideTimer = setTimeout(self.close, 500); }); + + el.addEventListener('click', () => { + clearTimeout(self.showTimer); + self.close(); + }); }, unbind(el, binding, vn) {