diff --git a/stubs/resources/views/flux/modal/index.blade.php b/stubs/resources/views/flux/modal/index.blade.php index e3b71796..57099b6f 100644 --- a/stubs/resources/views/flux/modal/index.blade.php +++ b/stubs/resources/views/flux/modal/index.blade.php @@ -2,6 +2,7 @@ @props([ 'dismissible' => null, + 'escapable' => null, 'position' => null, 'closable' => null, 'trigger' => null, @@ -95,6 +96,10 @@ $attributes = $attributes->merge(['disable-click-outside' => '']); } +if ($escapable === false) { + $attributes = $attributes->merge(['disable-escape' => '']); +} + [ $contentAttributes, $attributes ] = Flux::splitAttributes($attributes, ['autofocus', 'class', 'style']); [ $dialogAttributes, $attributes ] = Flux::splitAttributes($attributes, ['wire:close', 'x-on:close', 'wire:cancel', 'x-on:cancel']);