Hello.
I have some code
var btnRenderer = function(row, column, value) {
var html = "<div>" +
"<span ng-click=\"logHook(" + row + ")\" class=\"icon icon-view icon-fw marginR veiwIcon\"></span>" + "</div>";
return html;
};
$scope.settings.columns = [
{ text: "", datafield: "Id", width: 70, cellclassname: "mg", cellsrenderer: btnRenderer, filterable: false, sortable: false, groupable: false, pinned: true, type: "string", hidden: false }
];
$scope.logHook = function (index) {
var d = $scope.settings.source._source.localdata;
var value = d[index];
var modalInstance = $uibModal.open({
animation: false,
templateUrl: "app/Views/Models/changeTrailer.html",
backdrop: "static",
controller: "changeTrailerController",
size: "lg",
resolve: {}
});
modalInstance.result.then(function () {}, function() {});
};
When I click on span`s icon first time,that working is good. But second time is not working.
When you try to catch a click on the span, the browser does not display anything, as if nothing happened and the click was not
$(document).on('click','body *',function(){
console.log($(this));
});
AngularJS 1.7,but i think,that this is problem with grid
What`s happenned?