add: hide keyboard on mobile device on form submission
This commit is contained in:
parent
e58fe2d745
commit
902515a23a
|
@ -28,6 +28,9 @@ function App() {
|
||||||
setReponseFromAPI(true);
|
setReponseFromAPI(true);
|
||||||
setChatLog([...chatLog, { chatPrompt: inputPrompt }]);
|
setChatLog([...chatLog, { chatPrompt: inputPrompt }]);
|
||||||
callAPI();
|
callAPI();
|
||||||
|
|
||||||
|
// hide the keyboard in mobile devices
|
||||||
|
e.target.querySelector("input").blur();
|
||||||
}
|
}
|
||||||
|
|
||||||
async function callAPI() {
|
async function callAPI() {
|
||||||
|
|
Loading…
Reference in New Issue