mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
fix(ux): outside click close
This commit is contained in:
parent
4768cdfe07
commit
cf4c7fc8ec
@ -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>
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user