nuke-input
Advanced tools
Comparing version 1.0.43 to 1.0.44
# Changelog | ||
## 1.0.44 / 2018-01-13 | ||
* [[8021f80](http://gitlab.alibaba-inc.com/nuke/input/commit/8021f8073e5a8fb1462a97d53a4340613b17758c)] - `fix` fix input empty value error | ||
* [[f55cad5](http://gitlab.alibaba-inc.com/nuke/input/commit/f55cad5cfe5fa46d894e9f2f1fa8a16a72ee02d7)] - `fix` fix value empty bug | ||
## 1.0.43 / 2018-01-12 | ||
@@ -5,0 +10,0 @@ |
@@ -42,3 +42,3 @@ 'use strict'; | ||
value: function changeHandler(e) { | ||
var value = e.target.value || e.value; | ||
var value = (0, _util.getText)(e); | ||
@@ -50,3 +50,3 @@ var maxLength = this.props.maxLength; | ||
if ('value' in this.props) { | ||
this.setState({ value: (0, _util.getText)(e) }); | ||
this.setState({ value: value }); | ||
} | ||
@@ -84,3 +84,2 @@ this.trigger('onChange', value, (0, _util.genEventObject)(e)); | ||
value: function focusHandler(e) { | ||
this.trigger('onFocus', e); | ||
@@ -87,0 +86,0 @@ } |
{ | ||
"name": "nuke-input", | ||
"version": "1.0.43", | ||
"version": "1.0.44", | ||
"description": "输入框", | ||
@@ -5,0 +5,0 @@ "main": "lib/index", |
160305