mirror of
https://github.com/HackPlan/angular-datepicker.git
synced 2026-01-12 22:44:06 +08:00
fix(input): added scope, to prevent overriding & fix validation (ng-pristine/ng-dirty) issues
This commit is contained in:
@@ -38,6 +38,7 @@ Module.directive('dateTime', function ($compile, $document, $filter, dateTimeCon
|
||||
|
||||
return {
|
||||
require: 'ngModel',
|
||||
scope:true,
|
||||
link: function (scope, element, attrs, ngModel) {
|
||||
var format = attrs.format || dateTimeConfig.format;
|
||||
var parentForm = element.inheritedData('$formController');
|
||||
|
||||
2
dist/index.min.js
vendored
2
dist/index.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user