From 81121533b02f3cd923375204bbce922c56ce93d4 Mon Sep 17 00:00:00 2001 From: Freeplay Date: Fri, 28 Apr 2023 20:52:09 -0400 Subject: [PATCH] focus last element on bg click --- packages/client/src/components/MkModal.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/client/src/components/MkModal.vue b/packages/client/src/components/MkModal.vue index c47cd47b3..d1a96b4b7 100644 --- a/packages/client/src/components/MkModal.vue +++ b/packages/client/src/components/MkModal.vue @@ -188,6 +188,7 @@ function close(opts: { useSendAnimation?: boolean } = {}) { function onBgClick() { if (contentClicking) return; emit("click"); + focusedElement.focus(); } if (type === "drawer") {