fng-bootstrap-datetime 0.12.0-beta.219 → 0.12.0-beta.220

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -198,13 +198,15 @@ angular.module('ui.bootstrap.datetimepicker', ["ui.bootstrap.dateparser", "ui.bo
198
198
  $scope.ngModel.setHours(time.getHours(), time.getMinutes(), 0, 0);
199
199
  $scope.ngModel = new Date($scope.ngModel); // By default, ngModel watches the model by reference, not value. This is important to know when binding inputs to models that are objects (e.g. Date) (from: https://docs.angularjs.org/api/ng/directive/ngModel)
200
200
  }
201
- form.$setDirty();
201
+ getForm();
202
+ form?.$setDirty();
202
203
  };
203
204
  $scope.time_change = function () {
204
205
  if ($scope.ngModel && $scope.time) {
205
206
  $scope.ngModel.setHours($scope.time.getHours(), $scope.time.getMinutes(), 0, 0);
206
207
  $scope.ngModel = new Date($scope.ngModel); // By default, ngModel watches the model by reference, not value. This is important to know when binding inputs to models that are objects (e.g. Date) (from: https://docs.angularjs.org/api/ng/directive/ngModel)
207
- form.$setDirty();
208
+ getForm();
209
+ form?.$setDirty();
208
210
  } // else the time is invalid, keep the current Date value in datepicker
209
211
  };
210
212
  $scope.open = function ($event) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fng-bootstrap-datetime",
3
- "version": "0.12.0-beta.219",
3
+ "version": "0.12.0-beta.220",
4
4
  "description": "datetime input plugin for forms-angular",
5
5
  "main": "fng-bootstrap-datetime.js",
6
6
  "scripts": {