Skip to content

Commit

Permalink
autofilter: hide submenu if created before main window
Browse files Browse the repository at this point in the history
Change-Id: I314b1ba8bd45e6b8c5b75085b7292ce112efd53f
Signed-off-by: Szymon Kłos <[email protected]>
  • Loading branch information
eszkadev committed Dec 4, 2020
1 parent 2581660 commit 2819b72
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions loleaflet/src/control/Control.AutofilterDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ L.Control.AutofilterDropdown = L.Control.extend({
if (data.action === 'close')
return;

if (!isSubMenu && this.subMenu)
L.DomUtil.remove(this.subMenu);

var scale = this._map.getZoomScale(this._map.getZoom(), this._map.options.defaultZoom);
var origin = this._map.getPixelOrigin();
var panePos = this._map._getMapPanePos();
Expand Down

0 comments on commit 2819b72

Please sign in to comment.