diff --git a/app/controllers/controller.js b/app/controllers/controller.js index 7a06c12..0c1d117 100644 --- a/app/controllers/controller.js +++ b/app/controllers/controller.js @@ -77,6 +77,10 @@ if ($scope.canRemove()) { if (confirm('Are you sure you want to remove this?')) { $scope.archetypeRenderModel.fieldsets[$index].remove = true; + /* + Touches the model. Not sure why this is needed but without it the Digest doesn't run on a remove row. + */ + $scope.archetypeRenderModel = JSON.parse(JSON.stringify($scope.archetypeRenderModel)); } } } diff --git a/app/directives/archetypeproperty.js b/app/directives/archetypeproperty.js index fa7a945..bb1a745 100644 --- a/app/directives/archetypeproperty.js +++ b/app/directives/archetypeproperty.js @@ -99,7 +99,7 @@ angular.module("umbraco.directives").directive('archetypeProperty', function ($c var propertyConfig = getPropertyByAlias(configFieldsetModel, property.alias); - if(propertyConfig && propertyConfig.required && property.value == ""){ + if(propertyConfig && !fieldset.remove && propertyConfig.required && !property.value){ fieldset.isValid = false; property.isValid = false; valid = false;