Skip to content

fix(input-otp): sync value when length changes - #1

Merged
hemanth004 merged 4 commits into
mainfrom
fix-input-otp-length-sync
Oct 16, 2026
Merged

hemanth004 merged 4 commits into
mainfrom
fix-input-otp-length-sync

Conversation

@hemanth004

Copy link
Copy Markdown
Owner

Issue number: resolves ionic-team#31484


What is the current behavior?

Changing the length prop at runtime updates the rendered input boxes but can leave the public value longer than the rendered inputs.

What is the new behavior?

The component now reinitializes its values and tab indexes when length changes, keeping the public value synchronized with the rendered inputs.

  • Added a runtime length-change end-to-end regression test.
  • ESLint passes for the changed files.
  • Targeted Playwright execution is pending because the local browser executable is unavailable.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Fixes ionic-team#31484. No dependency updates or breaking API changes.

@hemanth004
hemanth004 merged commit 06bb2f1 into main Oct 16, 2026
@hemanth004
hemanth004 deleted the fix-input-otp-length-sync branch October 16, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(input-otp): changing length leaves value longer than rendered inputs

2 participants