Skip to content

Commit

Permalink
chore(input): don't restrict inputMode typing
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermerodz committed Mar 16, 2024
1 parent 8a9b1aa commit ce8c671
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -227,7 +227,7 @@ type OTPInputProps = {

// Virtual keyboard appearance on mobile
// Default: 'numeric'
inputMode?: 'numeric' | 'text'
inputMode?: 'numeric' | 'text' | 'decimal' | 'tel' | 'search' | 'email' | 'url'

// Enabled by default, it's an optional
// strategy for detecting Password Managers
Expand Down
1 change: 0 additions & 1 deletion packages/input-otp/src/types.ts
Expand Up @@ -18,7 +18,6 @@ type OTPInputBaseProps = OverrideProps<
maxLength: number

textAlign?: 'left' | 'center' | 'right'
inputMode?: 'numeric' | 'text'

onComplete?: (...args: any[]) => unknown
pushPasswordManagerStrategy?:
Expand Down

0 comments on commit ce8c671

Please sign in to comment.