Close Iphone Ipad keyboard automatically when closing modal

Hello community, could you help me with this problem ...

I need that when closing a modal, the keyboard is automatically closed ..

I am attentive to your help 

: / 


I have the same problem, i try whit javascript in the input using the attribut blur() , but not work.
Any idea?

Regards Luis!