Skip to content

Fix OTP input truncating when pasting (with separator) - #42939

Open
sondr3 wants to merge 2 commits into
twbs:v6-devfrom
sondr3:fix-otp-pasting
Open

sondr3 wants to merge 2 commits into
twbs:v6-devfrom
sondr3:fix-otp-pasting

Conversation

@sondr3

@sondr3 sondr3 commented Sep 19, 2026

Copy link
Copy Markdown

Description

Fix pasting into OPT input truncating last input:

Screen.Recording.2026-07-30.at.17.19.49.mov

Motivation & Context

I mentioned this in the v6 forms discussion, but this has been bugging me for so long I decided to fix it myself. If you checkout the first commit (434e36f652a747b8d5b5f9182486e1b12083a878) the test will fail because of this bug.

Type of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would change existing functionality)

Checklist

  • I have read the contributing guidelines
  • My code follows the code style of the project (using npm run lint)
  • My change introduces changes to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

Live previews

Related issues

@sondr3
sondr3 requested a review from a team as a code owner September 19, 2026 16:13
@sondr3 sondr3 changed the title Expose formatted OTP paste truncation Fix OTP input truncating when pasting (with separator) Sep 19, 2026
@github-project-automation github-project-automation Bot moved this to Inbox in v6.0.0 Sep 21, 2026
willbyers1

This comment was marked as spam.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Inbox

Development

Successfully merging this pull request may close these issues.

3 participants