Merge pull request #2914 from drauggres/bug/demo_addons_list
Fix demo. Clear addons list on terminal recreation
This commit is contained in:
+3
-1
@@ -392,7 +392,9 @@ function initAddons(term: TerminalType): void {
|
|||||||
wrapper.appendChild(label);
|
wrapper.appendChild(label);
|
||||||
fragment.appendChild(wrapper);
|
fragment.appendChild(wrapper);
|
||||||
});
|
});
|
||||||
document.getElementById('addons-container').appendChild(fragment);
|
const container = document.getElementById('addons-container');
|
||||||
|
container.innerHTML = '';
|
||||||
|
container.appendChild(fragment);
|
||||||
}
|
}
|
||||||
|
|
||||||
function addDomListener(element: HTMLElement, type: string, handler: (...args: any[]) => any): void {
|
function addDomListener(element: HTMLElement, type: string, handler: (...args: any[]) => any): void {
|
||||||
|
|||||||
Reference in New Issue
Block a user