When dismissing a dialog use afterClose to re-focus map.

It seems beforeClose is used by vex itself to emit the callback.
This commit is contained in:
Michael Meeks 2019-06-06 12:31:59 +01:00
parent 717816d44d
commit 5b6b59309f

View file

@ -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);
}