native-dom: Add a way to generate synthetic click events#5658
Merged
nicoburns merged 1 commit intoJul 1, 2026
Conversation
This is needed for the new dioxus testing library. Tests need a way to interact with the the system under test -- in this case, to tell them that the user has clicked a component. Previously there was no way to construct the required `NativePointerData` struct outside the native-dom crate itself.
hovinen
added a commit
to hovinen/dioxus-test
that referenced
this pull request
Jul 1, 2026
The content is taken directly from the corresponding [PR on GitHub](DioxusLabs/dioxus#5323). There is a minimal initial README file. The Dioxus dependency currently points to the branch of [this PR](DioxusLabs/dioxus#5658). It will point to main once the aforementioned PR is merged. Dependency versions are otherwise based on the ones present on the main branch in the Dioxus repository as of the time of writing.
nicoburns
approved these changes
Jul 1, 2026
nicoburns
left a comment
Member
There was a problem hiding this comment.
A bit awkward, but seems fine. I feel like we could probably come up with something a bit more elegant. But I'm not quite sure what yet.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is needed for the new dioxus testing library. Tests need a way to interact with the the system under test -- in this case, to tell them that the user has clicked a component. Previously there was no way to construct the required
NativePointerDatastruct outside the native-dom crate itself.