mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-14 15:15:22 +03:00
Fix dialog autofocus problems on mobile
This commit is contained in:
parent
1f9ba1d625
commit
1f58d25649
@ -2,7 +2,7 @@ import ActivityIndicator from "../indicators/activity-indicator";
|
|||||||
import { LuTrash } from "react-icons/lu";
|
import { LuTrash } from "react-icons/lu";
|
||||||
import { Button } from "../ui/button";
|
import { Button } from "../ui/button";
|
||||||
import { useCallback, useState } from "react";
|
import { useCallback, useState } from "react";
|
||||||
import { isDesktop } from "react-device-detect";
|
import { isDesktop, isMobile } from "react-device-detect";
|
||||||
import { FaDownload, FaPlay, FaShareAlt } from "react-icons/fa";
|
import { FaDownload, FaPlay, FaShareAlt } from "react-icons/fa";
|
||||||
import Chip from "../indicators/Chip";
|
import Chip from "../indicators/Chip";
|
||||||
import { Skeleton } from "../ui/skeleton";
|
import { Skeleton } from "../ui/skeleton";
|
||||||
@ -82,7 +82,13 @@ export default function ExportCard({
|
|||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<DialogContent>
|
<DialogContent
|
||||||
|
onOpenAutoFocus={(e) => {
|
||||||
|
if (isMobile) {
|
||||||
|
e.preventDefault();
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
>
|
||||||
<DialogTitle>Rename Export</DialogTitle>
|
<DialogTitle>Rename Export</DialogTitle>
|
||||||
<DialogDescription>
|
<DialogDescription>
|
||||||
Enter a new name for this export.
|
Enter a new name for this export.
|
||||||
@ -90,7 +96,7 @@ export default function ExportCard({
|
|||||||
{editName && (
|
{editName && (
|
||||||
<>
|
<>
|
||||||
<Input
|
<Input
|
||||||
className="mt-3"
|
className="text-md mt-3"
|
||||||
type="search"
|
type="search"
|
||||||
placeholder={editName?.original}
|
placeholder={editName?.original}
|
||||||
value={
|
value={
|
||||||
|
|||||||
@ -710,7 +710,7 @@ export function CameraGroupEdit({
|
|||||||
<FormLabel>Name</FormLabel>
|
<FormLabel>Name</FormLabel>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Input
|
<Input
|
||||||
className="w-full border border-input bg-background p-2 hover:bg-accent hover:text-accent-foreground dark:[color-scheme:dark]"
|
className="text-md w-full border border-input bg-background p-2 hover:bg-accent hover:text-accent-foreground dark:[color-scheme:dark]"
|
||||||
placeholder="Enter a name..."
|
placeholder="Enter a name..."
|
||||||
disabled={editingGroup !== undefined}
|
disabled={editingGroup !== undefined}
|
||||||
{...field}
|
{...field}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user