Base solution for your next web application
Open Closed

datePicker directive not validated with required - ngModel not used #6048


User avatar
0
kpmg created

<input type="datetime" datePicker [(selectedDate)]="notificationDate" id="notificationDate" name="notificationDate" required>

The control is not validated even though it contains "required". Inside the directive ngModel is not updated Do we have to use a workaround with selectedDateChange and a dummy ngModel Binding?


1 Answer(s)