We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a53b506 commit fa0b08dCopy full SHA for fa0b08d
1 file changed
assets/js/search.js
@@ -27,9 +27,9 @@ const initSearch = () => {
27
},
28
});
29
30
- // Close keyboard when scrolling in search results (mobile only)
+ // Close keyboard when touching search results (mobile only)
31
const searchDrawer = search.querySelector(".pagefind-ui__drawer");
32
- searchDrawer.addEventListener("scroll", () => {
+ searchDrawer.addEventListener("touchstart", () => {
33
if (!isMobile) return;
34
if (document.activeElement && document.activeElement.blur) {
35
document.activeElement.blur();
0 commit comments