-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
config.componentFactoryResolver not been passed to ComponentPortal constructor in MatDialog._attachDialogContainer method #17702
Comments
… content Currently the `ComponentFactoryResolver` from the dialog config is only used for the dialog container. These changes switch to also use it for the dialog content component. Fixes angular#17702.
… content Currently the `ComponentFactoryResolver` from the dialog config is only used for the dialog container. These changes switch to also use it for the dialog content component. Fixes #17702.
… content Currently the `ComponentFactoryResolver` from the dialog config is only used for the dialog container. These changes switch to also use it for the dialog content component. Fixes angular#17702.
… content Currently the `ComponentFactoryResolver` from the dialog config is only used for the dialog container. These changes switch to also use it for the dialog content component. Fixes angular#17702.
…ve dialog content Currently the `ComponentFactoryResolver` from the dialog config is only used for the dialog container. These changes switch to also use it for the dialog content component. Fixes angular#17702.
Hi - Could we get the fix for this merged? It looks like it's been approved. Thanks. |
Hi - Could we get the PR for this released? It looks like it's been approved. Thanks. |
…ve dialog content Currently the `ComponentFactoryResolver` from the dialog config is only used for the dialog container. These changes switch to also use it for the dialog content component. Fixes angular#17702.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
…ve dialog content (angular#17710) Currently the `ComponentFactoryResolver` from the dialog config is only used for the dialog container. These changes switch to also use it for the dialog content component. Fixes angular#17702.
Bug, feature request, or proposal:
Bug.
What is the expected behavior?
The custom componentFactoryResolver of Material Dialog config parameter should be passed to ComponentPortal in _attachDialogContainer and _attachDialogContent methods.
What is the current behavior?
The custom componentFactoryResolver of Material Dialog config parameter is only passed to ComponentPortal in the _attachDialogContainer method.
What are the steps to reproduce?
Just provide a custom componentFactoryResolver to dialog.open.
What is the use-case or motivation for changing an existing behavior?
Can´t use the custom componentFactoryResolver to instantiate new components.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular: 8.2.13
Material: 8.2.3
All browsers affected
Is there anything else we should know?
I belive that to solve the problem we just need to change the line 264 (method _attachDialogContent) of dialog.ts, passing the custom componentFactoryResolver to ComponentPortal constructor. I did it locally and worked properly:
dialog.ts:
to
The method _attachDialogContainer was updated with this feature in
565bd7d
The text was updated successfully, but these errors were encountered: