Skip to content

What am I missing? closest [[CSS selector]] #100

@SHxKM

Description

@SHxKM
_="on htmx:afterRequest remove .hidden from the closest <.followbutton/> to me"

Is giving me a "returned null" error.

Snippet from HTML:

<button _="on htmx:afterRequest remove .hidden from the closest <.followbutton/> to me"></button>
<button class="hidden"></button>
document.querySelector('.followbutton')

Does return results.

What am I missing about how closest or CSS literals work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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