Skip to content

Introduce a function to create a synthetic form event - #5750

Open
hovinen wants to merge 2 commits into
DioxusLabs:mainfrom
hovinen:add-synthetic-form-event
Open

Introduce a function to create a synthetic form event#5750
hovinen wants to merge 2 commits into
DioxusLabs:mainfrom
hovinen:add-synthetic-form-event

Conversation

@hovinen

@hovinen hovinen commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

This introduces synthetic_form_event analogously to synthetic_click_event. It allows test code to construct a NativeFormData which can set the values of form elements. Otherwise test code would have no easy way to generate such events.

This also increases the visibility of ElementId::new() so that it is possible to construct ElementId from outside Dioxus. The dioxus-test crate namely needs a way to construct these.

This introduces `synthetic_form_event` analogously to
`synthetic_click_event`. It allows test code to construct a
`NativeFormData` which can set the values of form elements. Otherwise
test code would have no easy way to generate such events.
@hovinen
hovinen force-pushed the add-synthetic-form-event branch from c7f654b to 8067eeb Compare September 5, 2026 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant