chore: improve Input Intl.NumberFormat usage (#37726)

This commit is contained in:
afc163 2022-09-24 23:13:24 +08:00 committed by GitHub
parent 04c6d622e9
commit 3ae7703303
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -9765,7 +9765,7 @@ exports[`renders ./components/input/demo/tooltip.md extend context correctly 1`]
Array [
<input
class="ant-input"
maxlength="25"
maxlength="16"
placeholder="Input a number"
style="width: 120px;"
type="text"

View File

@ -3545,7 +3545,7 @@ exports[`renders ./components/input/demo/textarea-show-count.md correctly 1`] =
exports[`renders ./components/input/demo/tooltip.md correctly 1`] = `
<input
class="ant-input"
maxlength="25"
maxlength="16"
placeholder="Input a number"
style="width: 120px;"
type="text"

View File

@ -58,7 +58,7 @@ const NumericInput = (props: NumericInputProps) => {
onChange={handleChange}
onBlur={handleBlur}
placeholder="Input a number"
maxLength={25}
maxLength={16}
/>
</Tooltip>
);