mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
Add delay on submitting from welcome view
This commit is contained in:
parent
2928c802fc
commit
602c6efbd8
1 changed files with 7 additions and 1 deletions
|
|
@ -10,7 +10,13 @@ const WelcomeView = () => {
|
|||
|
||||
const [errorMessage, setErrorMessage] = useState<string | undefined>(undefined)
|
||||
|
||||
const handleSubmit = () => {
|
||||
const handleSubmit = async () => {
|
||||
// Focus the active element's parent to trigger blur
|
||||
document.activeElement?.parentElement?.focus()
|
||||
|
||||
// Small delay to let blur events complete
|
||||
await new Promise((resolve) => setTimeout(resolve, 50))
|
||||
|
||||
const error = validateApiConfiguration(apiConfiguration)
|
||||
if (error) {
|
||||
setErrorMessage(error)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue