Skip to content

Commit

Permalink
fix(frontend/modal): add modals container to focus trap so multiple m…
Browse files Browse the repository at this point in the history
…odals don't break things (#577)
  • Loading branch information
c0rydoras authored Jan 14, 2025
1 parent 5faa9b1 commit fbb8d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/app/components/modal.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Modal::Overlay
@visible={{@visible}}
@onClose={{optional @onClose}}
{{focus-trap}}
{{focus-trap additionalElements=(array this.target)}}
>
<div
class="modal-dialog bg-background z-50 max-h-[100%] w-full rounded border"
Expand Down

0 comments on commit fbb8d19

Please sign in to comment.