From be11aeb0638f8739864b2b2dbe1b019da031a1da Mon Sep 17 00:00:00 2001 From: 4edorov <4edorov@gmail.com> Date: Sat, 3 Feb 2018 11:19:47 +0300 Subject: [PATCH] another cover fix #1 --- src/Cell.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/Cell.js b/src/Cell.js index 9e3d553..a2c681a 100644 --- a/src/Cell.js +++ b/src/Cell.js @@ -16,9 +16,7 @@ const connector = connect( class Cell extends React.Component { handleClick = e => { - if (e.detail === 1) { - this.props.dispatch(setEditingCoords(-1, -1)) - } + this.props.dispatch(setEditingCoords(-1, -1)) } handleInputClick = e => { @@ -26,9 +24,7 @@ class Cell extends React.Component { } handleDoubleClick = () => { - if (this.props.colDef.editable) { - this.props.dispatch(setEditingCoords(this.props.index, this.props.colDef.key)) - } + this.props.dispatch(setEditingCoords(this.props.index, this.props.colDef.key)) } handleRelease = () => { @@ -51,7 +47,7 @@ class Cell extends React.Component {
{Component && editable && this.props.editing ?