From 5b6b59309f5e4ce15011585b0a0fd2afb2bcce12 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Thu, 6 Jun 2019 12:31:59 +0100 Subject: [PATCH] When dismissing a dialog use afterClose to re-focus map. It seems beforeClose is used by vex itself to emit the callback. --- loleaflet/src/control/Control.AlertDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loleaflet/src/control/Control.AlertDialog.js b/loleaflet/src/control/Control.AlertDialog.js index d0bd78339..1e1267649 100644 --- a/loleaflet/src/control/Control.AlertDialog.js +++ b/loleaflet/src/control/Control.AlertDialog.js @@ -64,7 +64,7 @@ L.Control.AlertDialog = L.Control.extend({ showCloseButton: true, buttons: buttonsList, callback: function() {}, - beforeClose: function () { + afterClose: function () { e.map.focus(); e.map.enable(true); }