fixes click on closed modal
This commit is contained in:
@@ -15,10 +15,12 @@
|
|||||||
@endif
|
@endif
|
||||||
>
|
>
|
||||||
<template x-teleport="body">
|
<template x-teleport="body">
|
||||||
<div x-transition.opacity x-show="open" class="fixed top-0 left-0 z-[99] flex items-center justify-center w-full h-full" x-cloak>
|
<div x-transition.opacity x-show="open" class="fixed top-0 left-0 z-[99] flex items-center justify-center w-full h-full">
|
||||||
<div
|
<div
|
||||||
@click="open=false"
|
@click="open=false"
|
||||||
class="absolute inset-0 w-full h-full bg-black bg-opacity-40"
|
class="absolute inset-0 w-full h-full bg-black bg-opacity-40"
|
||||||
|
x-show="open"
|
||||||
|
x-cloak
|
||||||
></div>
|
></div>
|
||||||
|
|
||||||
<x-card
|
<x-card
|
||||||
@@ -26,6 +28,8 @@
|
|||||||
:title="$title"
|
:title="$title"
|
||||||
:subtitle="$subtitle"
|
:subtitle="$subtitle"
|
||||||
{{ $attributes->merge(['class' => 'relative transform overflow-hidden rounded-md ext-left shadow-xl w-full sm:w-2/3 lg:w-1/3 m-2 sm:m-0']) }}
|
{{ $attributes->merge(['class' => 'relative transform overflow-hidden rounded-md ext-left shadow-xl w-full sm:w-2/3 lg:w-1/3 m-2 sm:m-0']) }}
|
||||||
|
x-show="open"
|
||||||
|
x-cloak
|
||||||
>
|
>
|
||||||
@if ($showClose)
|
@if ($showClose)
|
||||||
<x-button
|
<x-button
|
||||||
|
|||||||
Reference in New Issue
Block a user