You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Anchor links inside (or wrapping) chips should navigate to their href
What is the current behavior?
Placing <a> inside <mat-chip> or placing <mat-chip> inside <a> causes no navigation to the <a>'s href.
What are the steps to reproduce?
Click the button "Edit in StackBlitz" in mat-chips page at https://material.angular.io/components/chips/overview and add these two lines: <a href="https://google.com"><mat-chip>Does not work as parent</mat-chip></a> <mat-chip><a href="https://google.com">Does not work as child</a></mat-chip>
Click on "Does not work as ..." links
What is the use-case or motivation for changing an existing behavior?
Chips that are capable to navigate to another page without the need of javascript code
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular: 5.1.1
Material: 5.0.1 (does not work with 5.0.0-rc.3 also which was initially loaded by StackBlitz)
OS: Windows 7
TypeScript: The version that StackBlitz uses
Is there anything else we should know?
Reacted by Dawid Ohia, Panagiotis Kapros, Mi-louse, Neil Stevens, T00130 and Yann Zahringer Ferrando
Activity
StickNitro commentedon Aug 9, 2018
Any news on this?
fix(chips): default click action on chip being prevented
fix(chips): default click action on chip being prevented
fix(chips): default click action on chip being prevented
fix(chips): default click action on chip being prevented
fix(chips): default click action on chip being prevented
fix(chips): default click action on chip being prevented
fix(chips): default click action on chip being prevented
fix(chips): default click action on chip being prevented
fix(chips): default click action on chip being prevented (#12856)
angular-automatic-lock-bot commentedon Sep 9, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.