Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Cannot get $event from ng-click or ng-change in Firefox #13628

@kevin031612

Description

@kevin031612

When I used ng-change or ng-click to listen a checkbox, the function can not get the event( whether I pass $event or not). The code is :
HTML

<input type="checkbox" ng-change="SendList.oListen.fnCheckHead($event)" ng-model="SendList.oListen.checkHead[career.career_id]" />

JS

   $scope.SendList.oListen.fnCheckHead:function(ev){
                var oEvent = ev||window.event;             //ev=>undefined, oEvent=>undefined
                var self = oEvent.target||oEvent.srcElement;
            }

And when i use onclick and onchange without angularJS, I can easily get the event by passing the parameter "event".
So please tell me how to get the event of ng-* in Firefox.
Thank you.

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