angular-gantt
angular-gantt copied to clipboard
gantt task clicked event not triggered on Firefox
Hello.
I have registered event when clicking a Gantt task. It is working on Chrome, Brave and Safari, but it doesn't seem to trigger on Firefox. Is it a known bug (I can't find anything by searching issues).
$scope.api.directives.on.new($scope, function(dName, dScope, dElement, dAttrs, dController) {
console.log(dName);
if (dName === 'ganttTask') {
return dElement.bind('click', function(event) {
if ($scope.currently_selected_task) {
$scope.currently_selected_task.model.classes = '';
}
select_grid_line(dScope.task.model.id);
return $timeout(function() {
dScope.task.model.classes = 'custom-task';
console.log(dScope.task.model);
return $scope.currently_selected_task = dScope.task;
});
});
}
});