diff --git a/src/components/masked-input/MaskedInput.tsx b/src/components/masked-input/MaskedInput.tsx index 8fc5b24..1e7a006 100644 --- a/src/components/masked-input/MaskedInput.tsx +++ b/src/components/masked-input/MaskedInput.tsx @@ -6,15 +6,16 @@ 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 InputMask from 'react-input-mask'; import classNames from 'classnames'; -type InputMaskRef = - | string - | ((instance: ReactInputMask | null) => void) - | React.RefObject - | null; +// type InputMaskRef = +// | string +// | ((instance: ReactInputMask | null) => void) +// | React.RefObject +// | null; type MaskedInputProps = HTMLProps & FormElementProps & { @@ -24,15 +25,13 @@ FormElementProps & { formatChars?: { [character: string]: string }; alwaysShowMask?: boolean; inputRef?: (instance: HTMLInputElement | null) => any; - ref?: InputMaskRef; - refs?: { - [key: string]: ReactInstance; -}; + // ref?: InputMaskRef; }; const MaskedInput: React.FC = props => ( inputType="input" {...props}> - {({ className, width, error, ref, refs, ...rest }:any) => ( + {/* {({ className, width, error, ref, ...rest }:any) => ( */} + {({ className, width, error, ...rest }:any) => (