Skip to content

onClick of ActionList.LinkItem not getting called #2724

Description

@jdrush89

Description

I tried updating dotcom to primer-upgrade-35.16 and noticed that the onClick passed to ActionList.LinkItems no longer gets called when clicking on the item.

Steps to reproduce

<ActionList>
  <ActionList.LinkItem onClick={() => console.log('test')}>
    <ActionList.LeadingVisual>
      <LinkIcon />
    </ActionList.LeadingVisual>
    github/primer
  </ActionList.LinkItem>
</ActionList

Change the ActionList.LinkItem example to this and try clicking the item. The console message does not get printed.

Version

v35.16

Browser

Chrome

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions