Stop propagation from click event when opening modal

This commit is contained in:
jacob1123 committed 2022-09-11 20:19:19 +00:00
1 parent a241298170
commit 10a870a300
1 file changed
+4 -1
+4 -1
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);