deselect everything when clicking outside a row
This commit is contained in:
@@ -223,6 +223,12 @@ angular.module("umbraco")
|
||||
event.stopPropagation();
|
||||
};
|
||||
|
||||
$scope.clickOutsideRow = function() {
|
||||
$scope.currentRow = null;
|
||||
$scope.currentCell = null;
|
||||
$scope.currentControl = null;
|
||||
};
|
||||
|
||||
$scope.setWarnighlightRow = function (row) {
|
||||
$scope.currentWarnhighlightRow = row;
|
||||
};
|
||||
|
||||
@@ -55,7 +55,8 @@
|
||||
<div class="umb-row"
|
||||
ng-repeat="row in section.rows"
|
||||
ng-click="clickRow(row, $event)"
|
||||
ng-class="{'-active': currentRow === row}">
|
||||
ng-class="{'-active': currentRow === row}"
|
||||
on-outside-click="clickOutsideRow()">
|
||||
|
||||
<div class="umb-row-title-bar">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user