修复构建错误
This commit is contained in:
@@ -2302,7 +2302,7 @@ export function FileTreeTab() {
|
||||
<DialogContent
|
||||
onOpenAutoFocus={(e) => {
|
||||
e.preventDefault()
|
||||
const input = e.currentTarget.querySelector("input")
|
||||
const input = (e.currentTarget as HTMLElement | null)?.querySelector("input")
|
||||
if (input) requestAnimationFrame(() => input.focus())
|
||||
}}
|
||||
>
|
||||
@@ -2369,7 +2369,7 @@ export function FileTreeTab() {
|
||||
<DialogContent
|
||||
onOpenAutoFocus={(e) => {
|
||||
e.preventDefault()
|
||||
const input = e.currentTarget.querySelector("input")
|
||||
const input = (e.currentTarget as HTMLElement | null)?.querySelector("input")
|
||||
if (input) requestAnimationFrame(() => input.focus())
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user