Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

eventClick return value is ignored #254

Closed
@ghost

Description

According to http://fullcalendar.io/docs/mouse/eventClick/ returning false in the function should make the browser not follow the link (like preventDefault() or something). This works fine with the original calendar script, but in ui-calendar this is ignored. To reproduce:

Change the calendarDemo.js:

$scope.alertOnEventClick = function( date, jsEvent, view){
        $scope.alertMessage = (date.title + ' was clicked ');
        jsEvent.preventDefault();
        return false;
    };```

and click on the "Click for Google". Only the alert should be shown and you should stay on the site, but instead you go to google.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions