Datepicker corrections

Datepicker window is closed after choosing a date.
Datepicker window is closed when we focus on another input field with
date type.