Dev branch

This commit is contained in:
Simon Pocrnjič
2025-11-02 12:31:01 +01:00
parent 5f879c9436
commit 63e0958b66
241 changed files with 17686 additions and 7327 deletions
+12 -4
View File
@@ -22,19 +22,27 @@ const showSlot = ref(props.show);
watch(
() => props.show,
() => {
(newVal) => {
if (props.show) {
document.body.style.overflow = "hidden";
showSlot.value = true;
dialog.value?.showModal();
// Use nextTick to ensure dialog ref is available
setTimeout(() => {
if (dialog.value) {
dialog.value.showModal();
}
}, 0);
} else {
document.body.style.overflow = null;
setTimeout(() => {
dialog.value?.close();
if (dialog.value) {
dialog.value.close();
}
showSlot.value = false;
}, 200);
}
}
},
{ immediate: true }
);
const close = () => {