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

chore: Expose autoFocus prop on OTPInput #252

Merged
merged 3 commits into from
May 2, 2024
Merged

Conversation

shadowsheep1
Copy link
Member

@shadowsheep1 shadowsheep1 commented May 2, 2024

Short description

This PR exposes the autoFocus prop on OTPInput.

List of changes proposed in this pull request

  • Add autoFocus on OTPInput.
  • Add OTPInput with autoFocus on the Example App.

How to test

Run the Example App, and inside the OTPInput section tap on "Show Autofocusable OTP" button to show an OTPInput that is focused and trigger the opening of the Virtual Keyboard.

@shadowsheep1 shadowsheep1 requested review from dmnplb and a team as code owners May 2, 2024 06:59
@shadowsheep1 shadowsheep1 self-assigned this May 2, 2024
@shadowsheep1 shadowsheep1 added the enhancement New feature or request label May 2, 2024
src/components/otpInput/OTPInput.tsx Outdated Show resolved Hide resolved
@shadowsheep1 shadowsheep1 merged commit bb40793 into main May 2, 2024
6 checks passed
@shadowsheep1 shadowsheep1 deleted the otp-intput-autofocus branch May 2, 2024 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants