Skip to content

Commit 1fdfc8f

Browse files
authored
input number default props type number
If <input /> elem not blur, letter is allow to input, and user jump press enter key will submit the illegality value. And add the type="number" attr will avoid this problem.
1 parent fe907ba commit 1fdfc8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export default class InputNumber extends React.Component {
9292
parser: defaultParser,
9393
required: false,
9494
autoComplete: 'off',
95+
type: 'number',
9596
}
9697

9798
constructor(props) {

0 commit comments

Comments
 (0)