Keyboard pop-up doesn't dismiss properly when $ionicModal opens up

Here is the video of the issue that I am facing https://www.dropbox.com/s/9q4xbwz8j9erbtf/ionicQ.mp4?dl=0

I am using ionic and Angularjs frameworks in this project, no cordova framework. basically when user selects product from search results, an ionicModal opens up but the cursor still keeps blinking and keyboard pop-up doesn’t dismiss. Can anyone suggest what I can do here?