Skip to content

Clicking on toggle expand/collapse icon doesn't always work #26

@almarouk

Description

@almarouk

When clicking on the borders of the toggle icon, the click is not registered, even though a cursor pointer is shown.

This is due to adding the click event listener to the icon and not the icon wrapper:

expandIcon.addEventListener("click", () => toggleExpand())

The fix is simple: put the click event listener on the icon wrapper instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions