Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin Input does not update when the value prop changes #2214

Open
2 of 3 tasks
Fazliddin-04 opened this issue Jan 31, 2025 · 1 comment
Open
2 of 3 tasks

Pin Input does not update when the value prop changes #2214

Fazliddin-04 opened this issue Jan 31, 2025 · 1 comment

Comments

@Fazliddin-04
Copy link

Fazliddin-04 commented Jan 31, 2025

Description

When using the PinInput component for login confirmation, I expected the input to reset when updating the value prop. However, the displayed value does not change, even though the state updates correctly.

Link to Reproduction

https://stackblitz.com/edit/chakra-ui-v3-ngzvkzc4?file=src%2FApp.tsx

Steps to reproduce

  1. Fill the PinInput with digits.
  2. Click the “RESET VALUE” button.
  3. The state updates (verified via console logs), but the input does not reflect the change.

Chakra UI Version

3.5.1

Browser

Brave, Google Chrome, Safari

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

I think, I followed the docs as written.

@segunadebayo segunadebayo transferred this issue from chakra-ui/chakra-ui Feb 2, 2025
@segunadebayo
Copy link
Member

segunadebayo commented Feb 2, 2025

Transferred the issue to Zag.js repo to get it fixed.

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

No branches or pull requests

2 participants