Skip to content

some way to select only elements that have a particular event handler #54

@avh4

Description

@avh4

Split from #32 by request.

some way to select only elements that have a particular event handler. In this example, find the div with the onClick handler, and ignore the other divs:

div []
    [ div []
        [ div [ onClick MyMsg ]
            [ div [] [ text "Click me" ] ]
        , div [] []
        ]
    , div [] []
    ]

Possible API:

Query.find [ tag "div", withHandler "click" ]

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions