broke if datepicker field had more than one class