bee-form-control
Advanced tools
Comparing version 2.0.13 to 2.0.14
@@ -144,4 +144,5 @@ 'use strict'; | ||
}); | ||
_this2.e.target.value = ""; | ||
if (onChange) { | ||
onChange(""); | ||
onChange("", _this2.e); | ||
} | ||
@@ -178,2 +179,3 @@ _this2.blurTime && clearTimeout(_this2.blurTime); | ||
var _e = _extends({}, e); | ||
_this2.e = _e; | ||
if (onBlur) { | ||
@@ -180,0 +182,0 @@ _this2.blurTime && clearTimeout(_this2.blurTime); |
@@ -0,1 +1,11 @@ | ||
<a name="2.0.14"></a> | ||
## [2.0.14](https://github.com/tinper-bee/form-control/compare/v2.0.13...v2.0.14) (2020-03-23) | ||
### Bug Fixes | ||
* **bee-form-control:** 清空按钮触发onChange时,没有事件对象 ([ce35509](https://github.com/tinper-bee/form-control/commit/ce35509)) | ||
<a name="2.0.13"></a> | ||
@@ -2,0 +12,0 @@ ## [2.0.13](https://github.com/tinper-bee/form-control/compare/v2.0.12...v2.0.13) (2020-03-21) |
{ | ||
"name": "bee-form-control", | ||
"version": "2.0.13", | ||
"version": "2.0.14", | ||
"description": "form-control ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -88,4 +88,5 @@ import React, {Component} from 'react'; | ||
}); | ||
this.e.target.value = ""; | ||
if (onChange) { | ||
onChange(""); | ||
onChange("",this.e); | ||
} | ||
@@ -114,2 +115,3 @@ this.blurTime&&clearTimeout(this.blurTime); | ||
let _e = Object.assign({}, e); | ||
this.e = _e; | ||
if(onBlur){ | ||
@@ -116,0 +118,0 @@ this.blurTime&&clearTimeout(this.blurTime); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2846830
33959