From 21dc44218623b61c3e1c12237034f4c29ce68bd4 Mon Sep 17 00:00:00 2001 From: John Kleinschmidt Date: Tue, 5 May 2015 16:37:18 -0400 Subject: [PATCH] Fixed date validation --- app/components/date-picker.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/components/date-picker.js b/app/components/date-picker.js index 4584ab4745..be845f341d 100644 --- a/app/components/date-picker.js +++ b/app/components/date-picker.js @@ -37,6 +37,8 @@ export default Ember.Forms.FormInputComponent.extend({ if (Ember.isEmpty(this.get('currentDisplayDate'))) { Ember.Binding.from("model." + displayPropertyName).to('currentDisplayDate').connect(this); } + + Ember.Binding.from('model.errors.'+dateProperty).to('model.errors.'+displayPropertyName).connect(this); this.set('doingSetup', false); }.on('init'),