Comparing version 1.1.0 to 1.1.1
@@ -415,8 +415,15 @@ 'use strict'; | ||
// XXX: Make sure we apply those operations after React has made its rendering pass. | ||
// Make sure we apply those operations after React has made its rendering pass. | ||
// As React 16 is asynchronous and uses rAF, it's safe to assume that this will | ||
// be called after React has patched the DOM. | ||
requestAnimationFrame(function () { | ||
_this4.codeMirror.operation(tagOps); | ||
}); | ||
// | ||
// But if we are calling this function from CodeMirror itself, we want to stay | ||
// in sync with it's internal state. | ||
if (this.isDebouncingCodeMirrorChange) { | ||
this.codeMirror.operation(tagOps); | ||
} else { | ||
requestAnimationFrame(function () { | ||
_this4.codeMirror.operation(tagOps); | ||
}); | ||
} | ||
}, | ||
@@ -454,4 +461,4 @@ | ||
if (_this5.isDebouncingCodeMirrorChange) { | ||
_this5.onChangeAndTagCodeMirror(); | ||
_this5.isDebouncingCodeMirrorChange = false; | ||
_this5.onChangeAndTagCodeMirror(); | ||
} | ||
@@ -458,0 +465,0 @@ }, 200); |
{ | ||
"name": "formatic", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Automatic, pluggable form generation", | ||
@@ -5,0 +5,0 @@ "main": "./build/lib/index.js", |
Sorry, the diff of this file is too big to display
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
425392
80
12041