Fixes some property editors ensuring ngModelController(#10013)

Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
This commit is contained in:
Shannon Deminick
2021-04-12 23:19:32 +10:00
committed by GitHub
parent 18fa631f1c
commit de4a7eff85
32 changed files with 460 additions and 334 deletions

View File

@@ -169,11 +169,14 @@
method: removeAllEntries,
isDisabled: true
};
// helper to force the current form into the dirty state
function setDirty() {
if ($scope.$parent.$parent.propertyForm) {
$scope.$parent.$parent.propertyForm.$setDirty();
if (vm.umbProperty) {
vm.umbProperty.setDirty();
}
};
function addNode(alias) {