mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-08 06:51:43 -04:00
(fix) broken language dropdown
This commit is contained in:
parent
ae4bed0c41
commit
ef67ea841a
@ -16,8 +16,10 @@ onUnmounted(() => {
|
||||
document.removeEventListener('click', documentClicked);
|
||||
});
|
||||
|
||||
const documentClicked = () => {
|
||||
shown.value = false;
|
||||
const documentClicked = (e: MouseEvent) => {
|
||||
if (e.target && !(e.target as Element).closest('.dropdown') && shown.value) {
|
||||
shown.value = false;
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user