Skip to content

Conversation

@dmitrii-nikiforov
Copy link

@dmitrii-nikiforov dmitrii-nikiforov commented Nov 23, 2025

Fix #8404

@github-actions
Copy link

Thanks a lot for your contribution! But, PR does not seem to be linked to any issues. Please manually link to an issue or mention it in the description using #<issue_id>.

@Coderxrohan
Copy link
Contributor

#8404

Hey @dmitrii-nikiforov,
The CI check is failing because the PR isn’t properly linked to an issue.
Could you please update the PR description or commit message to reference #8404 (e.g. Fixes #8404 or Fixed #8404)?
That should resolve the failing check. Thanks!

Copy link
Contributor

@Coderxrohan Coderxrohan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue
InputOtp did not update the value immediately in onValueChange. Due to useState behavior, the callback received a stale value until the next render, causing incorrect OTP state handling.

Fix
The value update logic now ensures the latest tokens are used when triggering onValueChange, allowing the value to reflect immediately on input and paste events.

Impact
InputOtp now behaves as expected with instant value updates, improving correctness and developer experience in controlled usage.

@github-actions
Copy link

github-actions bot commented Jan 3, 2026

Thanks a lot for your contribution! But, PR does not seem to be linked to any issues. Please manually link to an issue or mention it in the description using #<issue_id>.

2 similar comments
@github-actions
Copy link

github-actions bot commented Jan 3, 2026

Thanks a lot for your contribution! But, PR does not seem to be linked to any issues. Please manually link to an issue or mention it in the description using #<issue_id>.

@github-actions
Copy link

github-actions bot commented Jan 4, 2026

Thanks a lot for your contribution! But, PR does not seem to be linked to any issues. Please manually link to an issue or mention it in the description using #<issue_id>.

@melloware melloware changed the title fix(inputOtp): #8404, fixed the lack of an immediate value update Fix #8404: V11 fixed the lack of an immediate value update Jan 4, 2026
@github-actions
Copy link

github-actions bot commented Jan 4, 2026

Thanks a lot for your contribution! But, PR does not seem to be linked to any issues. Please manually link to an issue or mention it in the description using #<issue_id>.

@melloware melloware added this to the 11.0.0 milestone Jan 4, 2026
@melloware melloware added the Status: Pending Review Issue or pull request is being reviewed by Core Team label Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Status: Pending Review Issue or pull request is being reviewed by Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

V11: @primereact/headless: InputOtp value is not reflecting immediatly

3 participants