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 12ec7f4 commit 082291fCopy full SHA for 082291f
src/modules/popup/classes/popup-component-controller.ts
@@ -30,8 +30,10 @@ export class SuiPopupComponentController<T> extends SuiPopupController {
30
}
31
32
public open():void {
33
- this._contentComponentRef = this._componentFactory.createComponent(this._component as Type<T>);
34
- this._componentFactory.attachToView(this._contentComponentRef, this.popup.templateSibling);
+ if (!this._contentComponentRef) {
+ this._contentComponentRef = this._componentFactory.createComponent(this._component as Type<T>);
35
+ this._componentFactory.attachToView(this._contentComponentRef, this.popup.templateSibling);
36
+ }
37
38
super.open();
39
0 commit comments