Merge pull request #26 from ONLYOFFICE/bugfix/text-input

Web:TextInput: Fixed type props warning
This commit is contained in:
Alexey Safronov 2023-10-18 17:17:42 +04:00 committed by GitHub
commit e9bf8a8d2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ TextInput.propTypes = {
/** Used as HTML `name` property */
name: PropTypes.string,
/** Supported type of the input fields. */
type: PropTypes.oneOf(["text", "password", "email", "tel"]),
type: PropTypes.oneOf(["text", "password", "email", "tel", "search"]),
/** Value of the input */
value: PropTypes.string.isRequired,
/** Default maxLength value of the input */