autofilter: delete elements on close

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I8c0ad1d27fc6c1daee1d2409b4fe19d39ac5a55e
This commit is contained in:
Szymon Kłos 2021-11-04 14:12:18 +01:00 committed by Szymon Kłos
parent 8204e8a427
commit 74ef554fb4

View file

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