Skip to content

click() on an href icon-button has no effect. #5532

Description

@vdegenne

What is affected?

Component

Description

Using .click() programmatically on a <md-icon-button> (and variants) doesn't open the link referenced by the href attribute.

Comparatively, this behavior works on <md-text-button> (and variants)

Reproduction

https://lit.dev/playground/#gist=6d9560e7ff4fdcfaefd559de9f12349a

Workaround

workaround not found yet.

Is this a regression?

No or unsure. This never worked, or I haven't tried before.

Affected versions

1.3.0

Browser/OS/Node environment

everywhere

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions