Skip to content

mat-chip with with anchor link in parent causes page reload #15677

Closed
@lucasvanhalst

Description

@lucasvanhalst

What is the expected behavior?

The page should be navigated to without causing a reload

What is the current behavior?

The entire page is reloaded.

What are the steps to reproduce?

Providing a StackBlitz reproduction is the best way to share your issue.

https://stackblitz.com/edit/angular-material2-issue-dvn5ws?file=app%2Ftest.component.html

Clicking the first chip causes the page to reload (but you still end up on the correct page)
Clicking the second chip works as it should

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

7.2.11

Is there anything else we should know?

Looks like there was a related issue in the past: #9032

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions