Skip to content

Commit 9ece3e1

Browse files
committed
fix(form): fixed FormMessage counter prop-type validation
1 parent 73fc88f commit 9ece3e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/form/src/text-field/FormMessage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ if (process.env.NODE_ENV !== "production") {
205205
_counterValidator: (props, _propName, component) => {
206206
const { length, maxLength } = props;
207207
const lengthType = typeof length;
208-
const maxLengthType = typeof length;
208+
const maxLengthType = typeof maxLength;
209209
if (lengthType === maxLengthType) {
210210
return null;
211211
}

0 commit comments

Comments
 (0)