Comparing version 0.3.60 to 0.3.61
@@ -165,8 +165,15 @@ 'use strict'; | ||
onBlur: function onBlur() { | ||
var _this4 = this; | ||
var blur = function blur() { | ||
_this4.setState({ hasFocus: false }); | ||
_this4.props.onBlur(); | ||
}; | ||
if (this.isDebouncingCodeMirrorChange) { | ||
this.onChangeAndTagCodeMirror(); | ||
this.isDebouncingCodeMirrorChange = false; | ||
setTimeout(blur, 0); | ||
} else { | ||
blur(); | ||
} | ||
this.setState({ hasFocus: false }); | ||
this.props.onBlur(); | ||
}, | ||
@@ -385,3 +392,3 @@ | ||
onCodeMirrorChange: function onCodeMirrorChange() { | ||
var _this4 = this; | ||
var _this5 = this; | ||
@@ -400,5 +407,5 @@ var newValue = this.codeMirror.getValue(); | ||
this.debounceCodeMirrorChange = _.debounce(function () { | ||
if (_this4.isDebouncingCodeMirrorChange) { | ||
_this4.isDebouncingCodeMirrorChange = false; | ||
_this4.onChangeAndTagCodeMirror(); | ||
if (_this5.isDebouncingCodeMirrorChange) { | ||
_this5.isDebouncingCodeMirrorChange = false; | ||
_this5.onChangeAndTagCodeMirror(); | ||
} | ||
@@ -457,3 +464,3 @@ }, 200); | ||
switchToCodeMirror: function switchToCodeMirror(cb) { | ||
var _this5 = this; | ||
var _this6 = this; | ||
@@ -466,3 +473,3 @@ if (this.isReadOnly()) { | ||
this.setState({ codeMirrorMode: true }, function () { | ||
if (_this5.codeMirror && _.isFunction(cb)) { | ||
if (_this6.codeMirror && _.isFunction(cb)) { | ||
cb(); | ||
@@ -469,0 +476,0 @@ } |
{ | ||
"name": "formatic", | ||
"version": "0.3.60", | ||
"version": "0.3.61", | ||
"description": "Automatic, pluggable form generation", | ||
@@ -5,0 +5,0 @@ "main": "./build/lib/formatic", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
207516
5863