Skip to content

fix(web-components): prevent text-input from submitting twice when Enter is pressed#36240

Merged
marchbox merged 7 commits into
microsoft:masterfrom
marchbox:users/machi/fix-text-input-submit
May 27, 2026
Merged

fix(web-components): prevent text-input from submitting twice when Enter is pressed#36240
marchbox merged 7 commits into
microsoft:masterfrom
marchbox:users/machi/fix-text-input-submit

Conversation

@marchbox

Copy link
Copy Markdown
Contributor

Previous Behavior

When the pressing Enter key to submit pattern is triggered in <fluent-text-input>, the form is submitted twice. Because both beforeinput and keydown event handlers would request form submission.

New Behavior

beforeinput event handler removed, form now only submit once.

Related Issue(s)

Fixes #35802

@github-actions

github-actions Bot commented May 22, 2026

Copy link
Copy Markdown

📊 Bundle size report

✅ No changes found

@github-actions

Copy link
Copy Markdown

Pull request demo site: URL

@marchbox marchbox requested a review from a team as a code owner May 26, 2026 23:35
@github-actions github-actions Bot removed the NX: core label May 27, 2026
@marchbox marchbox enabled auto-merge (squash) May 27, 2026 18:56
@marchbox marchbox merged commit afcbd6d into microsoft:master May 27, 2026
12 checks passed
@marchbox marchbox deleted the users/machi/fix-text-input-submit branch May 27, 2026 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

[Bug]: double submit with enter

3 participants