kendo-drop-down-list ng-change 触发两次

kendo-drop-down-list ng-change fires twice

我不明白为什么 kendo-drop-down-list ng-change 在配置完成后触发两次,

//HTML

//script 
$scope.GetEditPriestSettings=function(selectedYear){
console.log($scope.EditPriestSettings);
if(selectedYear) {

angular.forEach($scope.EditPriestSettings, function (PriestSetting) {
if (parseInt(selectedYear) === parseInt(PriestSetting.Year)) {
$scope.EditPriestSetting = {
settingYear: PriestSetting.Year,
holiday: PriestSetting.HolidayDays,
seniorDays: PriestSetting.SeniorDays,
studyLeave: PriestSetting.StudyLeaveDays,
freeDays: PriestSetting.FreeDays,
redDays: PriestSetting.RedDays,
comment: PriestSetting.Comment
};
};});}};

我在这里错过了什么?

好吧,kendo-drop-down-list ng-change 工作正常,因为我在这里犯了一个错误,因为我正在更改 ng- 中的模型 (EditPriestSetting.settingYear)更改函数 (GetEditPriestSettings) 并再次触发 ng-change 事件。

<select kendo-drop-down-list
 ng-model="EditPriestSetting.settingYear"
 k-data-text-field="'keyDate'"
 k-data-value-field="'valueDate'"
 k-data-source="addYears"
 ng-change="GetEditPriestSettings(EditPriestSetting.settingYear)">
</select>