From 2979f856f3aa4ceb981bcc0da455c0398b2a0cf0 Mon Sep 17 00:00:00 2001 From: Henry Hein Date: Mon, 24 Jul 2023 14:33:04 +0800 Subject: [PATCH] fix: accidental logout --- src/javascript/app/base/header.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/javascript/app/base/header.js b/src/javascript/app/base/header.js index 9709d709cf8..1ff6c278f68 100644 --- a/src/javascript/app/base/header.js +++ b/src/javascript/app/base/header.js @@ -242,6 +242,8 @@ const Header = (() => { const bindClick = () => { const btn_login = getElementById('btn__login'); + const mng_acc = getElementById('account__switcher-manage'); + mng_acc.addEventListener('click', e => e.stopPropagation()); btn_login.removeEventListener('click', loginOnClick); btn_login.addEventListener('click', loginOnClick);