Skip to content
This repository was archived by the owner on Jun 23, 2023. It is now read-only.

Commit 0ddf7bc

Browse files
committed
Fixing the propType
1 parent c886845 commit 0ddf7bc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-nice-input-password",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "React input password component",
55
"main": "dist/react-nice-input-password.js",
66
"style": "dist/react-nice-input-password.css",

src/NiceInputPassword.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const propTypes = {
2222
descriptionLabel: PropTypes.string.isRequired,
2323
validator: PropTypes.oneOfType([
2424
PropTypes.func,
25-
PropTypes.object,
25+
PropTypes.element,
2626
]).isRequired,
2727
})),
2828
onChange: PropTypes.func,

0 commit comments

Comments
 (0)