diff --git a/src/renderer/src/components/modal/modal.tsx b/src/renderer/src/components/modal/modal.tsx index a0fc198a..696189ad 100644 --- a/src/renderer/src/components/modal/modal.tsx +++ b/src/renderer/src/components/modal/modal.tsx @@ -24,7 +24,6 @@ export function Modal({ }: ModalProps) { const [isClosing, setIsClosing] = useState(false); const modalContentRef = useRef(null); - const titleRef = useRef(null); const { t } = useTranslation("modal"); @@ -53,8 +52,6 @@ export function Modal({ useEffect(() => { if (visible) { - if (titleRef.current) titleRef.current.focus(); - const onKeyDown = (e: KeyboardEvent) => { if (e.key === "Escape" && isTopMostModal()) { handleCloseClick(); @@ -99,10 +96,8 @@ export function Modal({ >
-

- {title} -

- {description &&

{description}

} +

{title}

+ {description &&

{description}

}