smooth things out
This commit is contained in:
@@ -161,6 +161,13 @@ class PageTransitions {
|
||||
}).catch(error => console.error('Error fetching content:', error));
|
||||
}
|
||||
submitFormAsync(form) {
|
||||
// Close the mobile keyboard
|
||||
const searchInput = document.getElementById('s');
|
||||
searchInput.blur(); // Unfocus the input field to close the keyboard
|
||||
|
||||
// Clear the search form
|
||||
form.reset(); // Reset the form to clear input values
|
||||
|
||||
const formData = new FormData(form);
|
||||
fetch(form.action, {
|
||||
method: 'POST',
|
||||
|
Reference in New Issue
Block a user