Skip to content

Commit

Permalink
File/ImageLibrary: handle focus trap (#781)
Browse files Browse the repository at this point in the history
Disable focus trap, once it uses `native` model.
  • Loading branch information
robsontenorio authored Feb 3, 2025
1 parent cdf7f76 commit 364708b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/View/Components/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ class="radial-progress text-success absolute top-5 start-5 bg-neutral"
<!-- CROP MODAL -->
<div @click.prevent="" x-ref="crop" wire:ignore>
<x-mary-modal id="maryCrop{{ $uuid }}" x-ref="maryCrop" :title="$cropTitleText" separator class="backdrop-blur-sm" persistent @keydown.window.esc.prevent="">
<x-mary-modal id="maryCrop{{ $uuid }}" x-ref="maryCrop" :title="$cropTitleText" separator class="backdrop-blur-sm" persistent @keydown.window.esc.prevent="" without-trap-focus>
<img src="" />
<x-slot:actions>
<x-mary-button :label="$cropCancelText" @click="close()" />
Expand Down
2 changes: 1 addition & 1 deletion src/View/Components/ImageLibrary.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class="hidden"
<!-- CROP MODAL -->
<div @click.prevent="" x-ref="crop" wire:ignore>
<x-mary-modal id="maryCropModal{{ $uuid }}" x-ref="maryCropModal" :title="$cropTitleText" separator class="backdrop-blur-sm" persistent @keydown.window.esc.prevent="">
<x-mary-modal id="maryCropModal{{ $uuid }}" x-ref="maryCropModal" :title="$cropTitleText" separator class="backdrop-blur-sm" persistent @keydown.window.esc.prevent="" without-trap-focus>
<img src="#" crossOrigin="Anonymous" />
<x-slot:actions>
<x-mary-button :label="$cropCancelText" @click="close()" />
Expand Down

0 comments on commit 364708b

Please sign in to comment.