leaflet: Sidebar is not a popup window

Change-Id: Ib786a4038bfb55ee71e7e66a0e195fd43c9603af
This commit is contained in:
Ashod Nakashian 2019-09-01 22:13:58 -04:00
parent 97a7b1f170
commit 53bd11c8e7

View file

@ -849,7 +849,8 @@ L.Control.LokDialog = L.Control.extend({
onCloseCurrentPopUp: function() {
// for title-less dialog only (context menu, pop-up)
if (!this._currentId || !this._isOpen(this._currentId) || this._dialogs[this._currentId].title)
if (!this._currentId || !this._isOpen(this._currentId) ||
this._dialogs[this._currentId].title || this._isSidebar(this._currentId))
return;
this._onDialogClose(this._currentId, true);
},