Skip to content

Access to the event target property #4142

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
filips123 opened this issue May 19, 2025 · 0 comments
Open

Access to the event target property #4142

filips123 opened this issue May 19, 2025 · 0 comments
Labels
enhancement New feature or request html Related to the html crate

Comments

@filips123
Copy link

Feature Request

There is currently no way to access the event.target property (like the clicked element for onclick events) from the Rust event handlers. This makes it hard or impossible to do dynamic events based on the clicked elements or events that affect the clicked elements).

This was already requested in #2590, but that issue was closed without a proper solution, as web_event does not work for native and mobile targets.

Implement Suggestion

There should be a way to access (and potentially modify) the event target element of the event.

@filips123 filips123 added the enhancement New feature or request label May 19, 2025
@ealmloff ealmloff added the html Related to the html crate label May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request html Related to the html crate
Projects
None yet
Development

No branches or pull requests

2 participants