Merge branch 'kjac-v8-fix-tags-remove-setdirty' into temp8

This commit is contained in:
Claus
2019-01-13 01:04:35 +01:00

View File

@@ -1,9 +1,12 @@
angular.module("umbraco")
.controller("Umbraco.PropertyEditors.TagsController",
function ($scope) {
function ($scope, angularHelper) {
$scope.valueChanged = function(value) {
$scope.model.value = value;
// the model value seems to be a reference to the same array, so we need
// to set the form as dirty explicitly when the content of the array changes
angularHelper.getCurrentForm($scope).$setDirty();
}
}