smooth things out

This commit is contained in:
prospect
2024-01-19 09:56:07 -05:00
parent b514755482
commit c2cc79ec8d
3 changed files with 13 additions and 1 deletions

View File

@@ -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',

File diff suppressed because one or more lines are too long