aratcliffe/Leaflet.contextmenu

Leaflet and LeafletContextmenu compatibility problem.

Closed this issue · 3 comments

Leaflet@1.1.0 is somehow not exactly compatible with leaflet.contextmenu@1.4.0
An error goes like:
Uncaught TypeError: Cannot read property 'off' of undefined <leaflet.contextmenu.js:281>
while leaflet.contextmenu.js handling with right-click callback binding.
Plus to that, leaflet@1.0.3 supports correctly.

This is a bug in Leaflet 1.1.0. See #95

Oops, I missed that. Thanks and sorry for troubling!

No worries. It will be fixed in the next Leaflet release.