if (searchButton.getAttribute("aria-expanded") === "true") {
closeSearch();
-
- searchButton.setAttribute("aria-expanded", "false");
- searchButton.querySelector("fa-icon")!.setIcon("magnifying-glass");
} else {
// iOS Safari behaves unpredictable when the keyboard focus
// is moved into a HTML element that is inside a parent with
event.preventDefault();
closeSearch();
-
- searchButton.setAttribute("aria-expanded", "false");
- searchButton.querySelector("fa-icon")!.setIcon("magnifying-glass");
}
});
}
_pageHeaderSearchInput.blur();
}
+ const searchButton = document.getElementById("pageHeaderSearchMobile");
+ if (searchButton) {
+ searchButton.setAttribute("aria-expanded", "false");
+ searchButton.querySelector("fa-icon")!.setIcon("magnifying-glass");
+ }
+
const scope = _pageHeaderSearch.querySelector(".pageHeaderSearchType")!;
UiDropdownSimple.close(scope.id);
}
event.stopPropagation();
if (searchButton.getAttribute("aria-expanded") === "true") {
closeSearch();
- searchButton.setAttribute("aria-expanded", "false");
- searchButton.querySelector("fa-icon").setIcon("magnifying-glass");
}
else {
// iOS Safari behaves unpredictable when the keyboard focus
if (event.target === _pageHeaderSearch) {
event.preventDefault();
closeSearch();
- searchButton.setAttribute("aria-expanded", "false");
- searchButton.querySelector("fa-icon").setIcon("magnifying-glass");
}
});
}
if (_isMobile) {
_pageHeaderSearchInput.blur();
}
+ const searchButton = document.getElementById("pageHeaderSearchMobile");
+ if (searchButton) {
+ searchButton.setAttribute("aria-expanded", "false");
+ searchButton.querySelector("fa-icon").setIcon("magnifying-glass");
+ }
const scope = _pageHeaderSearch.querySelector(".pageHeaderSearchType");
Simple_1.default.close(scope.id);
}