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:
parent
717816d44d
commit
5b6b59309f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue