[fix] Allow TextInput to dispatch 'submit' event

Close #2371
This commit is contained in:
Md Neyaz Ahmad
2022-08-12 13:25:30 +05:30
committed by Nicolas Gallagher
parent b6c8da8c4b
commit c764f96ef4
+1 -1
View File
@@ -296,7 +296,7 @@ const TextInput: React.AbstractComponent<
onSubmitEditing(e);
}
if (shouldBlurOnSubmit && hostNode != null) {
hostNode.blur();
setTimeout(() => hostNode.blur(), 0);
}
}
}