On submit keyboard reappears always


#1

I have an input and a button of type "submit"
On click of submit, i make a REST call to show the result.

The frustrating part is that the input field always gets auto focused even after the submit button is clicked. I even tried calling

cordova.plugins.Keyboard.close();
angular.element(document.querySelector(‘input’)).blur();

but in vain. Keyword does not go off. Because that input is getting the focus again!!
My html code is

<div class="item item-input">
  <input placeholder="search for" type="text" ng-model="mydata.searchquery">
  <button type="submit" id="go" value="go" class="button button-calm" ng-click="findAll()">Find</button>
</div>

#2

ionic.DomUtil.blurAll();

Calling this in the controller works!! The focus is removed from any of the elements in the UI.