Click event should include access to thing being clicked #4729
Labels
component: events
issue: feature request
Describes a new feature and why it should be added
needs more info
Waiting for developer response
Milestone
Is your feature request related to a problem? Please describe.
Recently there was a person on the forums that wanted to trigger an alert when one of their custom blocks was clicked. I think that ideally you should be able to do this by listening to the click event. But currently it is not possible to check what block a click occured on (so their alert would trigger regardless of whether it was their custom block or a different block).
Describe the solution you'd like
Since
click
is a UI event which doesn't need to be serialized, I think the element being clicked (eg field, block, or workspace) should be passed along with the event.Describe alternatives you've considered
Information to reference the element being clicked could be passed. Eg, the block ID and field name in the case of a field click.
Additional context
N/A
The text was updated successfully, but these errors were encountered: