Prevent default when the submit button is clicked while isPending is true (#6209)
* Prevent default when the submit button is clicked while isPending is true
* prevent default for all button types
---------
Co-authored-by: Robert Snow <rsnow@adobe.com>
Co-authored-by: Yihui Liao <44729383+yihuiliao@users.noreply.github.com>