Stop propagation from click event when opening modal

This commit is contained in:
Jan Bader 2022-09-11 20:19:19 +00:00
parent a241298170
commit 10a870a300

View File

@ -15,10 +15,13 @@ const visible = ref(false);
function closeDialog() {
visible.value = false;
};
function openDialog() {
function openDialog(e : MouseEvent) {
e.stopPropagation();
emit("open");
visible.value = true;
};
function submitDialog() {
const e = {cancel: false};
emit("submit", e);