diff --git a/resources/views/components/modal-confirmation.blade.php b/resources/views/components/modal-confirmation.blade.php
index cc15de99e..dae5a060b 100644
--- a/resources/views/components/modal-confirmation.blade.php
+++ b/resources/views/components/modal-confirmation.blade.php
@@ -21,6 +21,7 @@
'dispatchEvent' => false,
'dispatchEventType' => 'success',
'dispatchEventMessage' => '',
+ 'ignoreWire' => true,
])
@php
@@ -28,7 +29,7 @@
$disableTwoStepConfirmation = data_get(InstanceSettings::get(), 'disable_two_step_confirmation');
@endphp
-
+}"
+ @keydown.escape.window="modalOpen = false; resetModal()" :class="{ 'z-40': modalOpen }"
+ class="relative w-auto h-auto">
@if ($customButton)
@if ($buttonFullWidth)
@@ -247,9 +249,7 @@
Confirm Actions
{{ $confirmationLabel }}
-
+