When datepicker field is focused using jquery .focus method it does not lose cursor.