Skip to content

Commit

Permalink
Fix for allowing future changes of datepicker field, previous version…
Browse files Browse the repository at this point in the history
… only let you pick a date once then failed after
  • Loading branch information
Ash Connell committed Jun 25, 2012
1 parent 6b43f92 commit 3342ccb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Android/DatePicker/README.md
Expand Up @@ -21,6 +21,9 @@
}, function(returnDate) {
var newDate = new Date(returnDate);
currentField.val(newDate.toString("dd/MMM/yyyy"));
// This fixes the problem you mention at the bottom of this script with it not working a second/third time around, because it is in focus.
currentField.blur();
});
});
Expand Down

0 comments on commit 3342ccb

Please sign in to comment.