mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
focus last element on bg click
This commit is contained in:
parent
b8ca00c593
commit
efcd0dd71b
@ -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
Block a user