{
// Get the bounding rectangle of the target element
const rect = event.target.getBoundingClientRect();
// Check if the mouse left from the top, left, or right
if (!event.clientY <= rect.top) {
open = false;
}
}"
x-cloak
style="background-color: #edf3f5;"
class="header-menu__childlist aw-absolute aw-top-[92%] aw-list-none aw-p-5">
{
// Get the bounding rectangle of the target element
const rect = event.target.getBoundingClientRect();
// Check if the mouse left from the top, left, or right
if (!event.clientY <= rect.top) {
open = false;
}
}"
x-cloak
style="background-color: #edf3f5;"
class="header-menu__childlist aw-absolute aw-top-[92%] aw-list-none aw-p-5">
{
// Get the bounding rectangle of the target element
const rect = event.target.getBoundingClientRect();
// Check if the mouse left from the top, left, or right
if (!event.clientY <= rect.top) {
open = false;
}
}"
x-cloak
style="background-color: #edf3f5;"
class="header-menu__childlist aw-absolute aw-top-[92%] aw-list-none aw-p-5">