Revert "Add delay on submitting from welcome view"

This reverts commit 602c6efbd8.
This commit is contained in:
System233 2025-02-17 22:27:56 +08:00
parent c4465dee8a
commit 2dcde02839

View file

@ -10,13 +10,7 @@ const WelcomeView = () => {
const [errorMessage, setErrorMessage] = useState<string | undefined>(undefined)
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 handleSubmit = () => {
const error = validateApiConfiguration(apiConfiguration)
if (error) {
setErrorMessage(error)