mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-01 09:39:51 -04:00
fix search screen looks white
This commit is contained in:
parent
77895473e5
commit
afdb15f99f
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue