This commit is contained in:
Robert
2019-01-15 10:31:12 +01:00
committed by GitHub
parent 9bc047c03f
commit 0092cac394

View File

@@ -130,8 +130,7 @@
if (!changes.value.isFirstChange() && changes.value.currentValue !== changes.value.previousValue) {
configureViewModel();
//this is required to re-validate
vm.tagEditorForm.tagCount.$setViewValue(vm.viewModel.length);
reValidate()
}
}
@@ -183,8 +182,7 @@
vm.onValueChanged({ value: [] });
}
//this is required to re-validate
$scope.propertyForm.tagCount.$setViewValue($scope.model.value.length);
reValidate();
}
/**
@@ -273,8 +271,12 @@
return ($.inArray(suggestion.value, vm.viewModel) === -1);
});
}
function reValidate() {
//this is required to re-validate
vm.tagEditorForm.tagCount.$setViewValue(vm.viewModel.length);
{
}
})();