-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
The current click even is just a more compact way to set up an event handler. However, in practice, we often want access to the effective target (ex: a button rather than a span inside the button). To do this now, we need to use helpers to grab the closest ancestor that matches the original selector (ex: button).
Options:
- Have the
clickhandler do this for you. Drawback: you might not want that. - Provide an alternative combinator (ex:
buttonornavigate). Drawback: confusing? - Require use of combinators (ex:
closest) to get to the “real” target. Drawback: inexpressive.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels