ionicScrollDelegate scrollTo hides keyboard in IOS


I am facing a problem where if I call any of the scroll methods of $ionicScrollDelegate (like scrollTo), the input field which is already in focus, looses the focus and the keyboard disappears. This is seen on iOS v8.

Basically I have an input field which is getting hidden by iOS keyboard accessory bar (which has Prev/Next/Done buttons). So to prevent this, I want to scroll the ion-content so that the focussed input field is completly visible. However, on focus event listener if I call $ionicScrollDelegate.scrollTo() the keyboard disappears as focus is lost on the input field.

Any pointers on how to fix this problem? Thanks.