more timeout race guards
This commit is contained in:
@@ -68,6 +68,7 @@ export function DialogExportOptions(props: DialogExportOptionsProps) {
|
||||
onMount(() => {
|
||||
dialog.setSize("medium")
|
||||
setTimeout(() => {
|
||||
if (!textarea || textarea.isDestroyed) return
|
||||
textarea.focus()
|
||||
}, 1)
|
||||
textarea.gotoLineEnd()
|
||||
|
||||
@@ -27,6 +27,7 @@ export function DialogPrompt(props: DialogPromptProps) {
|
||||
onMount(() => {
|
||||
dialog.setSize("medium")
|
||||
setTimeout(() => {
|
||||
if (!textarea || textarea.isDestroyed) return
|
||||
textarea.focus()
|
||||
}, 1)
|
||||
textarea.gotoLineEnd()
|
||||
|
||||
Reference in New Issue
Block a user