remove dangling autocompletes after closing the tab

pull/255/head
zadam 2020-05-04 21:58:40 +07:00
parent 4c6e9480e4
commit cafcb67a8a
1 changed files with 3 additions and 0 deletions

@ -265,6 +265,9 @@ export default class TabManager extends Component {
this.children = this.children.filter(tc => tc.tabId !== tabId);
// remove dangling autocompletes after closing the tab
$(".algolia-autocomplete").remove();
this.triggerEvent('tabRemoved', {tabId});
this.tabsUpdate.scheduleUpdate();