Closed atmichel closed 5 years ago
I revisited this problem this week and found a solution by editing lfx-draw-bindings.js and adding a nonce to the event listeners DRAWSTART
and DRAWSTOP
, as follows:
map.on(L.Draw.Event.DRAWSTART, function(e) {
if (!HTMLWidgets.shinyMode) return;
Shiny.onInputChange(map.id+'_draw_start', {'feature_type': e.layerType, 'nonce': Math.random()});
});
map.on(L.Draw.Event.DRAWSTOP, function(e) {
if (!HTMLWidgets.shinyMode) return;
Shiny.onInputChange(map.id+'_draw_stop', {'feature_type': e.layerType,'nonce': Math.random()});
});
I am using