focus last element on bg click

This commit is contained in:
Freeplay 2023-04-28 20:52:09 -04:00
parent b8ca00c593
commit efcd0dd71b

View file

@ -188,6 +188,7 @@ function close(opts: { useSendAnimation?: boolean } = {}) {
function onBgClick() {
if (contentClicking) return;
emit("click");
focusedElement.focus();
}
if (type === "drawer") {