mirror of
https://github.com/discourse/discourse.git
synced 2025-02-08 12:24:55 +00:00
FIX: disable input zoom on search in iOS
This commit is contained in:
parent
b484fe7626
commit
a452933071
@ -20,6 +20,6 @@ export default TextField.extend({
|
|||||||
// iOS is crazy, without this we will not be
|
// iOS is crazy, without this we will not be
|
||||||
// at the top of the page
|
// at the top of the page
|
||||||
$(window).scrollTop(0);
|
$(window).scrollTop(0);
|
||||||
$searchInput.focus();
|
$searchInput.trigger("touchstart").focus();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -410,7 +410,9 @@ export default createWidget("header", {
|
|||||||
|
|
||||||
if (currentPath === "full-page-search") {
|
if (currentPath === "full-page-search") {
|
||||||
scrollTop();
|
scrollTop();
|
||||||
$(".full-page-search").focus();
|
$(".full-page-search")
|
||||||
|
.trigger("touchstart")
|
||||||
|
.focus();
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
return DiscourseURL.routeTo("/search" + params);
|
return DiscourseURL.routeTo("/search" + params);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user