fix search screen looks white

This commit is contained in:
Sam 2015-09-16 15:02:57 +10:00
parent 77895473e5
commit afdb15f99f
1 changed files with 5 additions and 1 deletions

View File

@ -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();
}
});