From ce8c6717d19109e0f3d2bf45b074875813a768db Mon Sep 17 00:00:00 2001 From: Guilherme Rodz Date: Fri, 15 Mar 2024 22:21:27 -0300 Subject: [PATCH] chore(input): don't restrict inputMode typing --- README.md | 2 +- packages/input-otp/src/types.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index e74daaa..044741d 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/packages/input-otp/src/types.ts b/packages/input-otp/src/types.ts index 0c383c9..eefa431 100644 --- a/packages/input-otp/src/types.ts +++ b/packages/input-otp/src/types.ts @@ -18,7 +18,6 @@ type OTPInputBaseProps = OverrideProps< maxLength: number textAlign?: 'left' | 'center' | 'right' - inputMode?: 'numeric' | 'text' onComplete?: (...args: any[]) => unknown pushPasswordManagerStrategy?: