forge icon indicating copy to clipboard operation
forge copied to clipboard

fix(button): keep native submit or reset button in the dom for implicit form submission

Open samrichardsontylertech opened this issue 7 months ago • 1 comments

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added/updated: N
  • Docs have been added/updated: N
  • Does this PR introduce a breaking change? N
  • I have linked any related GitHub issues to be closed when this PR is merged? N

Describe the new behavior?

This adds a persistent slotted, hidden <button type="submit"></button> or <button type="reset"></button> to the base button component to enable implicit form submission, e.g. when a user presses the enter key while a form input is focused.

samrichardsontylertech avatar Jun 27 '24 19:06 samrichardsontylertech