I'm trying to open popup on drop, but it does not work, I've tried with
$scope.$on('leafletDirectiveMarker.dragend', function(event,args){
args.model.focus = true;
});
and
$scope.$on('leafletDirectiveMarker.dragend', function(event,args){
$scope.markers.forEach(function(marker){
marker.focus = false;
});
args.model.focus = true;
});
But popup does not open until I drag and drop the marker for second time.
That's not how it should work, how can I achieve this?