Skip to content

Commit 7948d74

Browse files
author
Matt Lewis
committed
docs(demos): fix date-time-picker model value
Closes #423
1 parent a3ed9bc commit 7948d74

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

demos/demo-modules/demo-utils/date-time-picker.component.ts

+2
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ export class DateTimePickerComponent implements ControlValueAccessor {
102102
),
103103
this.dateStruct.year
104104
);
105+
this.writeValue(newDate);
105106
this.onChangeCallback(newDate);
106107
}
107108

@@ -113,6 +114,7 @@ export class DateTimePickerComponent implements ControlValueAccessor {
113114
),
114115
this.timeStruct.hour
115116
);
117+
this.writeValue(newDate);
116118
this.onChangeCallback(newDate);
117119
}
118120
}

0 commit comments

Comments
 (0)