Skip to content

Commit

Permalink
fix(frontend): do not trap focus automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnisDa committed Jul 9, 2024
1 parent fe0cfdc commit 44ac712
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/frontend/app/routes/_dashboard.media.item.$id._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
Container,
Divider,
Flex,
FocusTrap,
Group,
Image,
Indicator,
Expand Down Expand Up @@ -1185,11 +1186,12 @@ const AdjustSeenTimesModal = (props: {

return (
<Modal
centered
opened={props.opened}
onClose={props.onClose}
withCloseButton={false}
centered
>
<FocusTrap.InitialFocus />
<Form
replace
method="POST"
Expand All @@ -1200,13 +1202,11 @@ const AdjustSeenTimesModal = (props: {
<Title order={3}>Adjust seen times</Title>
<DateInput
label="Start time"
required
name="startedOn"
defaultValue={startedOn ? new Date(startedOn) : undefined}
/>
<DateInput
label="End time"
required
name="finishedOn"
defaultValue={finishedOn ? new Date(finishedOn) : undefined}
/>
Expand Down

0 comments on commit 44ac712

Please sign in to comment.