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
Solved by adding a blur() event to the onClose method of the datepicker.