Skip to content
Discussion options

You must be logged in to vote

That is interesting. We have a special case in TriggerEventDispatchExtensions exactly for that case as long as there is a <form> element as parent to that button.

TL;DR: Inside a <form> you should be able to call Click on a button that has type "submit" which would trigger the onsbumit event handler of said form

Can you share your component under test?

Replies: 1 comment 5 replies

Comment options

linkdotnet
Oct 7, 2025
Maintainer Sponsor

You must be logged in to vote
5 replies
@Jorn96
Comment options

@linkdotnet
Comment options

linkdotnet Oct 7, 2025
Maintainer Sponsor

@Jorn96
Comment options

@linkdotnet
Comment options

linkdotnet Oct 7, 2025
Maintainer Sponsor

@Jorn96
Comment options

Answer selected by Jorn96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants