Skip to content

fix: [One-Time Password Field] focus otp's first input when autoFocus props is true. #3547

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

nayounsang
Copy link
Contributor

Description

close #3538

  • Add test for autoFocus props
  • focus first input when autoFocus is true
스크린샷 2025-05-17 오후 5 07 38

autoFocus: false

스크린샷 2025-05-17 오후 5 07 44

autoFocus: true

Copy link

changeset-bot bot commented May 17, 2025

🦋 Changeset detected

Latest commit: 83cab0c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@radix-ui/react-one-time-password-field Patch
radix-ui Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@nayounsang
Copy link
Contributor Author

Note that the docs say there is no defaultValue, but in the code it is false. Logically it doesn't matter.

@injae-kim
Copy link

Really good enhancement for UX 👍

@nayounsang nayounsang changed the title fix: [OneTimePasswordField] focus otp's first input when autoFocus props is true. fix: [One-Time Password Field] focus otp's first input when autoFocus props is true. May 19, 2025
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.

[OneTimePasswordField] autoFocus prop not auto focusing first input
2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy