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

Here is the video of the issue that I am facing

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?