Skip to content
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

Dialog doesn't open on angular material 15 mat-form-field #330

Open
POFerro opened this issue Feb 10, 2023 · 2 comments
Open

Dialog doesn't open on angular material 15 mat-form-field #330

POFerro opened this issue Feb 10, 2023 · 2 comments

Comments

@POFerro
Copy link

POFerro commented Feb 10, 2023

Hi :),

I recently upgraded my project to angular 15, and everything worked when I left material components as legacy ones, strangely when I migrated mat-form-field and mat-chips to the newer mdc components the color picker dialog stopped opening.
I understand it's odd since there's no dependency on material components from this one but the behavior changed when I changed material components.

Can you help me?
Thanks in advance.
Best regards and congratulations on the fine component :).
POFerro

@BZValoche
Copy link

Looks like the focus and click events are not propagated to the child elements anymore, so you need to put the directive colorPicker on the element which receives them.

This used to work with Angular 14 :

<button mat-icon-button >
    <mat-icon [(colorPicker)]="color">palette</mat-icon>
</button>

This works with Angular 15 :

<button mat-icon-button [(colorPicker)]="color">
    <mat-icon>palette</mat-icon>
</button>

@Kailijan
Copy link
Contributor

Sorry, I referenced the wrong issue there.

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

No branches or pull requests

3 participants