mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 17:27:55 +08:00
fix search screen looks white
This commit is contained in:
parent
77895473e5
commit
afdb15f99f
@ -10,6 +10,10 @@ export default TextField.extend({
|
||||
|
||||
@on("didInsertElement")
|
||||
becomeFocused() {
|
||||
if (this.get('hasAutofocus')) this.$().focus();
|
||||
if (!this.get('hasAutofocus')) { return; }
|
||||
// iOS is crazy, without this we will not be
|
||||
// at the top of the page
|
||||
$(window).scrollTop(0);
|
||||
this.$().focus();
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user