Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Slotted anchor tags don't respond to clicks. #153

Description

@sufyanAbbasi

Description

I'm trying to slot an anchor tag in a <paper-toggle-button> as part of its label, but I find that the toggle is preventing the click event from propagating to the anchor tag.

Expected outcome

The default behavior of an anchor tag nested in a label: clicking on the anchor tag should take precedence over the toggle.

Actual outcome

Paper toggle is triggered, no pointer events are forwarded to the anchor tag.

Live Demo

lit.dev Playground Example comparing the paper-toggle-button behavior vs. a checkbox with label

Steps to reproduce

Nest an anchor tag in a <paper-toggle-button>.

Browsers Affected

  • Chrome
  • [?] Firefox
  • [?] Safari 9
  • [?] Safari 8
  • [?] Safari 7
  • [?] Edge
  • [?] IE 11
  • [?] IE 10

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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