There seems to be a bug with JQuery UI datepicker, when user manually enters a date, and hits enter, the datepicker closes but focus stays on the field and therefor calendar
The simplest approach is to instantiate the datepicker on the like you normally would, but then get rid of the focus handler ourselves and replace it with a click handler.