bee-form-control
Advanced tools
Comparing version 2.0.11 to 2.0.12
@@ -147,2 +147,4 @@ 'use strict'; | ||
} | ||
_this2.blurTime && clearTimeout(_this2.blurTime); | ||
_this2.blurTime = null; | ||
_this2.input.focus(); | ||
@@ -177,3 +179,6 @@ }; | ||
if (onBlur) { | ||
onBlur(value, e); | ||
_this2.blurTime && clearTimeout(_this2.blurTime); | ||
_this2.blurTime = setTimeout(function () { | ||
onBlur(value, e); | ||
}, 100); | ||
} | ||
@@ -180,0 +185,0 @@ }; |
@@ -0,1 +1,16 @@ | ||
<a name="2.0.12"></a> | ||
## [2.0.12](https://github.com/tinper-bee/form-control/compare/v2.0.11...v2.0.12) (2020-03-20) | ||
### Bug Fixes | ||
* **bee-form-control:** componentWillReceiveProps value判断 ([5574583](https://github.com/tinper-bee/form-control/commit/5574583)) | ||
### Features | ||
* **bee-form-control:** 清空按钮不触发blur ([3257de9](https://github.com/tinper-bee/form-control/commit/3257de9)) | ||
<a name="2.0.11"></a> | ||
@@ -2,0 +17,0 @@ ## [2.0.11](https://github.com/tinper-bee/form-control/compare/v2.0.10...v2.0.11) (2020-01-14) |
{ | ||
"name": "bee-form-control", | ||
"version": "2.0.11", | ||
"version": "2.0.12", | ||
"description": "form-control ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -91,2 +91,4 @@ import React, {Component} from 'react'; | ||
} | ||
this.blurTime&&clearTimeout(this.blurTime); | ||
this.blurTime=null; | ||
this.input.focus(); | ||
@@ -113,3 +115,6 @@ } | ||
if(onBlur){ | ||
onBlur(value, e); | ||
this.blurTime&&clearTimeout(this.blurTime); | ||
this.blurTime = setTimeout(() => { | ||
onBlur(value, e); | ||
}, 100); | ||
} | ||
@@ -116,0 +121,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2845376
44
33948