Skip to content
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

Fix as web event #3178

Merged
merged 1 commit into from
Nov 7, 2024
Merged

Fix as web event #3178

merged 1 commit into from
Nov 7, 2024

Conversation

ealmloff
Copy link
Member

@ealmloff ealmloff commented Nov 4, 2024

#3137 made as_any return the inner event directly instead of the synthetic event, but the as_web_event implementation of many events were still trying to downcast to the synthetic version of the event. This PR changes the as_web_event implementation for all events to always downcast to the web-sys version of the event directly

Fixes #3177

@ealmloff ealmloff added bug Something isn't working web relating to the web renderer for dioxus html Related to the html crate labels Nov 4, 2024
@jkelleyrtp jkelleyrtp merged commit 5186d8d into DioxusLabs:main Nov 7, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working html Related to the html crate web relating to the web renderer for dioxus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

element can't downcast on onmounted
2 participants