Skip to content

Conversation

@MaHmoudAlmoKdaD
Copy link

@MaHmoudAlmoKdaD MaHmoudAlmoKdaD commented Nov 12, 2025

Summary:

  • Added support for defaultValue in OtpInput.
  • Initialized input state with defaultValue.
  • Synced text state when defaultValue changes dynamically.
  • Simplified useImperativeHandle (removed unused blur method).

Impact:

  • Enables pre-filling OTP fields (e.g., saved codes, autofill).
  • No breaking changes to existing API.
  • Maintains backward compatibility and consistent behavior.

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.

1 participant