Skip to content

Commit

Permalink
NCRS-3363: updated to use ReactInputMask
Browse files Browse the repository at this point in the history
  • Loading branch information
alice-bell committed Dec 18, 2024
1 parent 22fbe57 commit 99bed4e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/masked-input/MaskedInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { InputWidth } from 'nhsuk-react-components/dist/esm/util/types/NHSUKType

import FormGroup from './LocalFormGroup';

import InputMask, { ReactInputMask } from 'react-input-mask';
// import InputMask, { ReactInputMask } from 'react-input-mask';
import ReactInputMask from 'react-input-mask';

import classNames from 'classnames';

Expand All @@ -30,7 +31,7 @@ FormElementProps & {
const MaskedInput: React.FC<MaskedInputProps> = props => (
<FormGroup<MaskedInputProps> inputType="input" {...props}>
{({ className, width, error, ref, ...rest }:any) => (
<InputMask
<ReactInputMask
className={classNames(
'nhsuk-input',
{ [`nhsuk-input--width-${width}`]: width },
Expand Down

0 comments on commit 99bed4e

Please sign in to comment.