diff --git a/src/_common b/src/_common index b62cac6f5d..16229778d5 160000 --- a/src/_common +++ b/src/_common @@ -1 +1 @@ -Subproject commit b62cac6f5d75b1af5b527a2849bedee42e906d6d +Subproject commit 16229778d5c97e66d81b4107171a2af00a7b262d diff --git a/src/input/Input.tsx b/src/input/Input.tsx index 18df1b071d..a996a1cf79 100644 --- a/src/input/Input.tsx +++ b/src/input/Input.tsx @@ -226,6 +226,7 @@ const Input = forwardRefWithStatics( onBlur={handleBlur} onPaste={handlePaste} name={name} + maxLength={maxlength && !allowInputOverMax ? maxlength : null} /> ); diff --git a/src/input/_example/max-length-count.jsx b/src/input/_example/max-length-count.jsx index 6fa5069699..a55b09200f 100644 --- a/src/input/_example/max-length-count.jsx +++ b/src/input/_example/max-length-count.jsx @@ -14,9 +14,9 @@ export default function InputExample() { csr test src/input/_example/max-length-count.jsx 1` > @@ -116583,7 +116584,7 @@ exports[`csr snapshot test > csr test src/input/_example/max-length-count.jsx 1`