8000 gantt task clicked event not triggered on Firefox · Issue #845 · angular-gantt/angular-gantt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Sep 7, 2020. It is now read-only.

gantt task clicked event not triggered on Firefox #845

Open
gugguson opened this issue Sep 30, 2019 · 0 comments
Open

gantt task clicked event not triggered on Firefox #845

gugguson opened this issue Sep 30, 2019 · 0 comments

Comments

@gugguson
Copy link

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;
            });
          });
        }
      });
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0