Open danielforsberg opened 8 years ago
Try :
<span ng-show="!form.dateTime.$pristine" class="notice">{{ message }}</span>
Thanks for the input but I get the same result.
We are seeing the same issue. I made a small change that seems to work but I do not know if this is the best fix. Any thoughts?
var datetimePicker = function($parse, DatetimePicker) {
return {
// An ngModel is required to get the controller argument
require: 'ngModel',
link: function(scope, element, attrs, ctrl) {
// Attach validation watcher
scope.$watch(attrs.ngModel, function(value, old) {
//force dirty on update
if (value !== old) {
ctrl.$setDirty();
}
Thank you @ryan-morris for your input, it works. I'm not sure if it's the right way to do it either but I will use it until further notice.
As topic states the form properties is not affected when I choose a date (Google Chrome Version 50.0.2661.86 (64-bit))
Here's what I am trying to do:
The message only shows if I manually make some input to the field, not when choosing a date from the datetime-picker