Skip to content

Bugfix/showpopover error#141

Open
maaso wants to merge 1 commit into
masterfrom
bugfix/showpopover-error
Open

Bugfix/showpopover error#141
maaso wants to merge 1 commit into
masterfrom
bugfix/showpopover-error

Conversation

@maaso

@maaso maaso commented Jul 9, 2026

Copy link
Copy Markdown

Change the default cdkDrag rootElement and make it configurable

Closes #140

@maaso
maaso force-pushed the bugfix/showpopover-error branch from 001fae0 to 5fa99ca Compare July 9, 2026 14:17
hostDirectives: [CdkDrag]
})
export class DraggableDialogDirective implements OnInit {
rootElementSelector = input('mat-dialog-container', {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make this public readonly.

hostDirectives: [CdkDrag]
})
export class DraggableDialogDirective implements OnInit {
rootElementSelector = input('mat-dialog-container', {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be '.cdk-overlay-pane' to be backwards compatible?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we also want some global provider for setting the application default for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(dialog): TypeError Cannot use 'in' operator to search for 'showPopover' in null

2 participants