FIX: disable input zoom on search in iOS

This commit is contained in:
Penar Musaraj 2019-04-24 08:37:46 -04:00
parent b484fe7626
commit a452933071
2 changed files with 4 additions and 2 deletions

View File

@ -20,6 +20,6 @@ export default TextField.extend({
// iOS is crazy, without this we will not be
// at the top of the page
$(window).scrollTop(0);
$searchInput.focus();
$searchInput.trigger("touchstart").focus();
}
});

View File

@ -410,7 +410,9 @@ export default createWidget("header", {
if (currentPath === "full-page-search") {
scrollTop();
$(".full-page-search").focus();
$(".full-page-search")
.trigger("touchstart")
.focus();
return false;
} else {
return DiscourseURL.routeTo("/search" + params);