Trigger a change event when hiding the date picker if the dates have changed