autofilter: delete elements on close
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com> Change-Id: I8c0ad1d27fc6c1daee1d2409b4fe19d39ac5a55e
This commit is contained in:
parent
8204e8a427
commit
74ef554fb4
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue