Socket
Socket
Sign inDemoInstall

react-pencil

Package Overview
Dependencies
1
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.1.1

14

dist/react-pencil.js

@@ -114,3 +114,3 @@ 'use strict';

try {
(0, _autosizeInput2.default)(this.refs.content);
(0, _autosizeInput2.default)(this.content);
} catch (ignore) {}

@@ -124,3 +124,3 @@ }

this._delayedFocus = window.setTimeout(function () {
moveCursorToEnd(_this2.refs.content);
moveCursorToEnd(_this2.content);
_this2.content.focus();

@@ -230,3 +230,3 @@ }, 110);

this.selectAll();
moveCursorToEnd(this.refs.content);
moveCursorToEnd(this.content);
}

@@ -272,3 +272,3 @@ }, {

return _react2.default.createElement('span', _extends({ ref: function ref(el) {
_this6.content = el;
return _this6.content = el;
},

@@ -354,2 +354,4 @@ contentEditable: 'true',

value: function render() {
var _this9 = this;
var _props4 = this.props,

@@ -370,3 +372,5 @@ multiline = _props4.multiline,

{ className: 'input-field' },
_react2.default.createElement(Component, _extends({ ref: el = this.editable = el }, rest, { finishEdit: this.finishEdit })),
_react2.default.createElement(Component, _extends({ ref: function ref(el) {
return _this9.editable = el;
} }, rest, { finishEdit: this.finishEdit })),
pencil ? this.renderPencilButton() : null

@@ -373,0 +377,0 @@ ),

{
"name": "react-pencil",
"version": "1.1.0",
"version": "1.1.1",
"description": "A React component that allows single and multiline in-place edits.",

@@ -5,0 +5,0 @@ "main": "dist/react-pencil.js",

@@ -72,3 +72,3 @@ import PropTypes from 'prop-types';

try {
autosizeInput(this.refs.content);
autosizeInput(this.content);
} catch (ignore) {}

@@ -79,3 +79,3 @@ }

this._delayedFocus = window.setTimeout(() => {
moveCursorToEnd(this.refs.content);
moveCursorToEnd(this.content);
this.content.focus();

@@ -159,3 +159,3 @@ }, 110);

this.selectAll();
moveCursorToEnd(this.refs.content);
moveCursorToEnd(this.content);
}

@@ -189,3 +189,3 @@

return (
<span ref={el => {this.content = el}}
<span ref={el => (this.content = el)}
contentEditable='true'

@@ -251,3 +251,3 @@ style={style}

<div className='input-field'>
<Component ref={el = (this.editable = el)} {...rest} finishEdit={this.finishEdit}/>
<Component ref={el => (this.editable = el)} {...rest} finishEdit={this.finishEdit}/>
{pencil ? this.renderPencilButton() : null}

@@ -254,0 +254,0 @@ </div>

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc