Add 'maxLength' prop to Input

This commit is contained in:
Justin 2022-04-12 09:50:29 -04:00 committed by Alex Gleason
parent 3e0d7de2cd
commit fd6ae83fe7
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -11,7 +11,7 @@ const messages = defineMessages({
hidePassword: { id: 'input.password.hide_password', defaultMessage: 'Hide password' },
});
interface IInput extends Pick<React.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'required' | 'type'> {
interface IInput extends Pick<React.InputHTMLAttributes<HTMLInputElement>, 'maxLength' | 'onChange' | 'required' | 'type'> {
autoFocus?: boolean,
defaultValue?: string,
className?: string,