Stop propagation from click event when opening modal
This commit is contained in:
parent
a241298170
commit
10a870a300
@ -15,10 +15,13 @@ const visible = ref(false);
|
|||||||
function closeDialog() {
|
function closeDialog() {
|
||||||
visible.value = false;
|
visible.value = false;
|
||||||
};
|
};
|
||||||
function openDialog() {
|
|
||||||
emit("open");
|
function openDialog(e : MouseEvent) {
|
||||||
visible.value = true;
|
e.stopPropagation();
|
||||||
|
emit("open");
|
||||||
|
visible.value = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
function submitDialog() {
|
function submitDialog() {
|
||||||
const e = {cancel: false};
|
const e = {cancel: false};
|
||||||
emit("submit", e);
|
emit("submit", e);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user