mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 12:39:59 +01:00
Focus last element when exiting modal
This commit is contained in:
parent
f0a53114b3
commit
e266cc0b99
@ -77,10 +77,12 @@ const type = $computed(() => {
|
||||
|
||||
let contentClicking = false;
|
||||
|
||||
const focusedElement = document.activeElement;
|
||||
const close = () => {
|
||||
if (props.src) props.src.style.pointerEvents = 'auto';
|
||||
showing = false;
|
||||
emit('close');
|
||||
focusedElement.focus();
|
||||
};
|
||||
|
||||
const onBgClick = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user