diff --git a/src/views/LoginModal.vue b/src/views/LoginModal.vue index 170b22ba..90b3a25b 100644 --- a/src/views/LoginModal.vue +++ b/src/views/LoginModal.vue @@ -8,7 +8,6 @@ v-model="loginViewOpen" title="Login to your bot" @ok="handleOk" - @hide.prevent > @@ -32,7 +31,8 @@ const handleLoginResult = (result: boolean) => { loginViewOpen.value = false; } }; -const handleOk = () => { +const handleOk = (evt) => { + evt.preventDefault(); loginForm.value?.handleSubmit(); }; const openLoginModal = async (botInfo: AuthStorageWithBotId | undefined = undefined) => {