Skip to content

Commit 57e3ffa

Browse files
Remove incorrect pattern from date inputs
1 parent 64750a2 commit 57e3ffa

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/components/form-elements/date-input/components/IndividualDateInputs.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ const IndividualDateInput: FC<IndividualDateInputProps> = ({
2929
error,
3030
value,
3131
defaultValue,
32-
pattern = '[0-9]*',
33-
inputMode = 'numeric',
34-
type = 'text',
3532
...rest
3633
}) => {
3734
const {
@@ -90,9 +87,8 @@ const IndividualDateInput: FC<IndividualDateInputProps> = ({
9087
name={inputName}
9188
onChange={handleChange}
9289
ref={refCallback}
93-
pattern={pattern}
94-
inputMode={inputMode}
95-
type={type}
90+
inputMode="numeric"
91+
type="text"
9692
{...rest}
9793
/>
9894
</div>

0 commit comments

Comments
 (0)