focus last element on bg click
This commit is contained in:
parent
db692fcf83
commit
81121533b0
|
@ -188,6 +188,7 @@ function close(opts: { useSendAnimation?: boolean } = {}) {
|
||||||
function onBgClick() {
|
function onBgClick() {
|
||||||
if (contentClicking) return;
|
if (contentClicking) return;
|
||||||
emit("click");
|
emit("click");
|
||||||
|
focusedElement.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type === "drawer") {
|
if (type === "drawer") {
|
||||||
|
|
Loading…
Reference in New Issue