Skip to content

Copy buttons on code snippets not working if they are inside a <!-- tabs-open --> ... <!-- tabs-close --> #1955

Closed
@albinkc

Description

@albinkc

The event listener defined in assets/js/copy-button.js is not being registered to the copy button if the button is inside of a "tablist" class

As an example, try clicking on the copy button on any snippet within a tab at https://hexdocs.pm/ex_doc/readme.html

Tested on Chrome and Firefox

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions