mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 20:03:15 +08: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
|
||||
// at the top of the page
|
||||
$(window).scrollTop(0);
|
||||
$searchInput.focus();
|
||||
$searchInput.trigger("touchstart").focus();
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user