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 c776547 commit 70ee3bcCopy full SHA for 70ee3bc
components/popup/popup.directive.ts
@@ -123,6 +123,9 @@ export class SuiPopupDirective {
123
if (!this._popupComponentRef) {
124
const factory = this._componentFactoryResolver.resolveComponentFactory(SuiPopup);
125
this._popupComponentRef = this._viewContainerRef.createComponent(factory);
126
+
127
+ // Append the generated element to the body to avoid any positioning issues.
128
+ document.querySelector("body").appendChild(this._popupComponentRef.location.nativeElement);
129
130
this._popup.onClose.subscribe(() => {
131
this._popupComponentRef.destroy();
0 commit comments