Skip to content

Cannot click normal links anymore with 2.0.6 #3395

@thomas-0816

Description

@thomas-0816

Click on Link works and loads "/link" with v2.0.4:

<html>
<head>
    <script src="https://cdn.jsdelivr.net/npm/htmx.org@2.0.4/dist/htmx.min.js"></script>
</head>
<body>
    <div hx-trigger='click' hx-get='/htmx'>
        <a href="/link">Link</a>
    </div>
</body>
</html>

Click on Link is no longer working with v2.0.6:

<html>
<head>
    <script src="https://cdn.jsdelivr.net/npm/htmx.org@2.0.6/dist/htmx.min.js"></script>
</head>
<body>
    <div hx-trigger='click' hx-get='/htmx'>
        <a href="/link">Link</a>
    </div>
</body>
</html>

Problem is related to https://github.com/bigskysoftware/htmx/pull/3357/files (closest() does not match children)

cc @MichaelWest22

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    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