Skip to content

native-dom: Add a way to generate synthetic click events#5658

Merged
nicoburns merged 1 commit into
DioxusLabs:mainfrom
hovinen:add-synthetic-events-to-native-dom
Jul 1, 2026
Merged

native-dom: Add a way to generate synthetic click events#5658
nicoburns merged 1 commit into
DioxusLabs:mainfrom
hovinen:add-synthetic-events-to-native-dom

Conversation

@hovinen

@hovinen hovinen commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

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.

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 hovinen requested a review from a team as a code owner July 1, 2026 18:43
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 nicoburns left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@nicoburns nicoburns merged commit 672dc1f into DioxusLabs:main Jul 1, 2026
21 checks passed
@nicoburns nicoburns added the native Related to dioxus-native label Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

native Related to dioxus-native

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants