Event parameter not defined for Knockout click binding using Firefox

前端 未结 2 1725
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-14 16:36

I am getting this JS error: ReferenceError: event is not defined when I try to pass the event object to click binding when I use Firefox 23. Ev

2条回答
  •  情深已故
    2021-02-14 17:30

    Here the solution from github.com/knockout/knockout/issues/752

    
       
          ...
       
    
    

    Under Firefox event is not defined on the window object, instead it needs to be passed to the function.

提交回复
热议问题