We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 823f1f1 commit 0d699bcCopy full SHA for 0d699bc
src/embed/ts-embed.ts
@@ -100,7 +100,7 @@ export class TsEmbed {
100
* This is useful for removing the DOM node when the
101
* embed instance is destroyed.
102
*/
103
- protected insertedDomEl: Node;
+ public insertedDomEl: Node;
104
105
/**
106
* The DOM node where the ThoughtSpot app is to be embedded.
@@ -1133,7 +1133,8 @@ export class TsEmbed {
1133
1134
public destroy(): void {
1135
try {
1136
- this.insertedDomEl?.parentNode.removeChild(this.insertedDomEl);
+ (this.insertedDomEl as HTMLElement)?.remove();
1137
+ // this.insertedDomEl?.remove();
1138
this.unsubscribeToEvents();
1139
} catch (e) {
1140
logger.log('Error destroying TS Embed', e);
0 commit comments