sydcanem / bootstrap-contextmenu

Context menu plugin for Twitter's Bootstrap framework
http://sydcanem.com/bootstrap-contextmenu/
644 stars 193 forks source link

Uncaught TypeError: Cannot read property 'stopPropagation' of undefined #99

Closed JD-Robbs closed 8 years ago

JD-Robbs commented 8 years ago

This line:

https://github.com/sydcanem/bootstrap-contextmenu/blob/master/bootstrap-contextmenu.js#L92

Causes this error:

Uncaught TypeError: Cannot read property 'stopPropagation' of undefined

Simply removing it fixes the issue, albeit for some people, it may be undesirable to continue propagation. Not sure what's causing it - I'm applying it to dynamic elements that are handled by KnockoutJS.

Any ideas? Or maybe it needs a check for the existence of the event object e before using it?

JD-Robbs commented 8 years ago

Just saw this is a known issue. Apologies! :smiley: