From 1fdfc8f72b9dd9cf73478f663e98d1c05db99a87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E9=A5=BC?= Date: Fri, 13 Dec 2019 13:50:44 +0800 Subject: [PATCH] input number default props type number If 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. --- src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.js b/src/index.js index 002274c6..6a571bda 100644 --- a/src/index.js +++ b/src/index.js @@ -92,6 +92,7 @@ export default class InputNumber extends React.Component { parser: defaultParser, required: false, autoComplete: 'off', + type: 'number', } constructor(props) {