2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 03:29:00 +00:00

fix(ux): outside click close

This commit is contained in:
18alantom 2022-05-30 14:30:27 +05:30
parent 4768cdfe07
commit cf4c7fc8ec
2 changed files with 8 additions and 2 deletions

View File

@ -12,9 +12,14 @@
items-center items-center
" "
style="background: rgba(0, 0, 0, 0.2); backdrop-filter: blur(4px)" style="background: rgba(0, 0, 0, 0.2); backdrop-filter: blur(4px)"
@click="$emit('closemodal')"
v-if="openModal" v-if="openModal"
> >
<div class="bg-white rounded-lg shadow-2xl w-form" v-bind="$attrs"> <div
class="bg-white rounded-lg shadow-2xl w-form"
v-bind="$attrs"
@click.stop
>
<slot></slot> <slot></slot>
</div> </div>
</div> </div>
@ -28,5 +33,6 @@ export default {
type: Boolean, type: Boolean,
}, },
}, },
emits: ['closemodal'],
}; };
</script> </script>

View File

@ -27,7 +27,7 @@
</div> </div>
<!-- Search Modal --> <!-- Search Modal -->
<Modal :open-modal="openModal"> <Modal :open-modal="openModal" @closemodal="close">
<!-- Search Input --> <!-- Search Input -->
<div class="p-1"> <div class="p-1">
<input <input