Skip to content

Chips prevent anchor link navigatation #9032

Closed

Description

@varadero

Bug, feature request, or proposal:

Bug

What is the expected behavior?

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?

  1. 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>
  2. 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?

Activity

  1. added
    P2
    on Dec 18, 2017
  2. StickNitro commented on Aug 9, 2018

    @StickNitro

    Any news on this?

  3. added 3 commits that reference this issue on Aug 27, 2018
    a443df6
    737aec8
    812f213
  4. added a commit that references this issue on Aug 28, 2018
    28a12e3
  5. added a commit that references this issue on Sep 6, 2018
    619f713
  6. added 3 commits that reference this issue on Sep 10, 2018
    bb520e3
    289de51
    8463c2d
  7. added a commit that references this issue on Sep 14, 2018
    ae3ce4a
  8. angular-automatic-lock-bot commented on Sep 9, 2019

    @angular-automatic-lock-bot

    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.

  9. locked and limited conversation to collaborators on Sep 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions