From 37f405b4b51dfcd81cca96979ebddd53d06638c6 Mon Sep 17 00:00:00 2001 From: Guilherme Rodz Date: Fri, 1 Nov 2024 17:21:07 -0300 Subject: [PATCH] chore(input): stop enforcing only digits regexp by default --- packages/input-otp/src/input.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/input-otp/src/input.tsx b/packages/input-otp/src/input.tsx index db196d7..1924af6 100644 --- a/packages/input-otp/src/input.tsx +++ b/packages/input-otp/src/input.tsx @@ -2,7 +2,6 @@ import * as React from 'react' -import { REGEXP_ONLY_DIGITS } from './regexp' import { syncTimeouts } from './sync-timeouts' import { OTPInputProps, RenderProps } from './types' import { usePrevious } from './use-previous' @@ -19,7 +18,7 @@ export const OTPInput = React.forwardRef( onChange: uncheckedOnChange, maxLength, textAlign = 'left', - pattern = REGEXP_ONLY_DIGITS, + pattern, placeholder, inputMode = 'numeric', onComplete,