react-pencil
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -286,3 +286,4 @@ 'use strict'; | ||
key: 'finishEdit', | ||
value: function finishEdit(newValue) { | ||
value: function finishEdit() { | ||
var newValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; | ||
var _props3 = this.props, | ||
@@ -289,0 +290,0 @@ value = _props3.value, |
{ | ||
"name": "react-pencil", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A React component that allows single and multiline in-place edits.", | ||
@@ -5,0 +5,0 @@ "main": "dist/react-pencil.js", |
@@ -199,3 +199,3 @@ import React from 'react'; | ||
finishEdit(newValue) { | ||
finishEdit(newValue = '') { | ||
const {value, name, multiline} = this.props; | ||
@@ -202,0 +202,0 @@ newValue = newValue.trim(); |
Sorry, the diff of this file is too big to display
771877
19744