diff --git a/loleaflet/src/control/Control.AutofilterDropdown.js b/loleaflet/src/control/Control.AutofilterDropdown.js index ef5e21428..76524e5f6 100644 --- a/loleaflet/src/control/Control.AutofilterDropdown.js +++ b/loleaflet/src/control/Control.AutofilterDropdown.js @@ -71,6 +71,11 @@ L.Control.AutofilterDropdown = L.Control.extend({ } if (data.action === 'close') { + L.DomUtil.remove(this.container); + L.DomUtil.remove(this.subMenu); + this.container = null; + this.subMenu = null; + this.builder.setWindowId(null); this.subMenuBuilder.setWindowId(null); return;