Skip to content

Commit

Permalink
chore(input): stop enforcing only digits regexp by default
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermerodz committed Nov 1, 2024
1 parent aaf22bc commit 37f405b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/input-otp/src/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -19,7 +18,7 @@ export const OTPInput = React.forwardRef<HTMLInputElement, OTPInputProps>(
onChange: uncheckedOnChange,
maxLength,
textAlign = 'left',
pattern = REGEXP_ONLY_DIGITS,
pattern,
placeholder,
inputMode = 'numeric',
onComplete,
Expand Down

0 comments on commit 37f405b

Please sign in to comment.