Socket
Socket
Sign inDemoInstall

formatic

Package Overview
Dependencies
Maintainers
6
Versions
223
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

formatic - npm Package Compare versions

Comparing version 0.3.61 to 0.3.62

23

build/lib/components/helpers/pretty-text-input.js

@@ -165,14 +165,9 @@ '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);
this.setState({ hasFocus: false }, this.props.onBlur);
} else {
blur();
this.setState({ hasFocus: false });
this.props.onBlur();
}

@@ -392,3 +387,3 @@ },

onCodeMirrorChange: function onCodeMirrorChange() {
var _this5 = this;
var _this4 = this;

@@ -407,5 +402,5 @@ var newValue = this.codeMirror.getValue();

this.debounceCodeMirrorChange = _.debounce(function () {
if (_this5.isDebouncingCodeMirrorChange) {
_this5.isDebouncingCodeMirrorChange = false;
_this5.onChangeAndTagCodeMirror();
if (_this4.isDebouncingCodeMirrorChange) {
_this4.isDebouncingCodeMirrorChange = false;
_this4.onChangeAndTagCodeMirror();
}

@@ -464,3 +459,3 @@ }, 200);

switchToCodeMirror: function switchToCodeMirror(cb) {
var _this6 = this;
var _this5 = this;

@@ -473,3 +468,3 @@ if (this.isReadOnly()) {

this.setState({ codeMirrorMode: true }, function () {
if (_this6.codeMirror && _.isFunction(cb)) {
if (_this5.codeMirror && _.isFunction(cb)) {
cb();

@@ -476,0 +471,0 @@ }

{
"name": "formatic",
"version": "0.3.61",
"version": "0.3.62",
"description": "Automatic, pluggable form generation",

@@ -5,0 +5,0 @@ "main": "./build/lib/formatic",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc