react-bootstrap-table-nextgen
Advanced tools
Comparing version 4.3.8 to 4.3.9
@@ -115,3 +115,4 @@ "use strict"; | ||
column = _a.column, | ||
rest = __rest(_a, ["row", "column"]); | ||
atstart = _a.atstart, | ||
rest = __rest(_a, ["row", "column", "atstart"]); | ||
var dataField = column.dataField, | ||
@@ -125,5 +126,5 @@ formatter = column.formatter, | ||
} | ||
if (this.props.clicktoedit && this.props.editable) { | ||
if (this.props.clicktoedit === "true" && this.props.editable === "true") { | ||
attrs.onClick = this.createHandleEditingCell(attrs.onClick); | ||
} else if (this.props.dbclicktoedit && this.props.editable) { | ||
} else if (this.props.dbclicktoedit === "true" && this.props.editable === "true") { | ||
attrs.onDoubleClick = this.createHandleEditingCell(attrs.onDoubleClick); | ||
@@ -130,0 +131,0 @@ } |
@@ -6,2 +6,3 @@ import React, { Component } from "react"; | ||
shouldUpdate?: boolean; | ||
isEditable?: boolean; | ||
} | ||
@@ -8,0 +9,0 @@ export default class RowPureContent extends Component<RowPureContentProps> { |
@@ -81,3 +81,3 @@ "use strict"; | ||
rowIndex = _this$props.rowIndex, | ||
editable = _this$props.editable, | ||
isEditable = _this$props.isEditable, | ||
editingRowIdx = _this$props.editingRowIdx, | ||
@@ -135,3 +135,3 @@ editingColIdx = _this$props.editingColIdx, | ||
var editableCell = utils_1["default"].isDefined(column.editable) ? column.editable : true; | ||
if (column.dataField === keyField || !editable) editableCell = false; | ||
if (column.dataField === keyField || !isEditable) editableCell = false; | ||
if (utils_1["default"].isFunction(column.editable)) { | ||
@@ -152,4 +152,4 @@ editableCell = column.editable(content, row, rowIndex, index); | ||
atstart: atstart, | ||
clicktoedit: clickToEdit !== null && clickToEdit !== void 0 ? clickToEdit : "false", | ||
dbclicktoedit: dbclickToEdit !== null && dbclickToEdit !== void 0 ? dbclickToEdit : "false" | ||
clicktoedit: clickToEdit ? clickToEdit.toString() : "false", | ||
dbclicktoedit: dbclickToEdit ? dbclickToEdit.toString() : "false" | ||
}, cellAttrs)); | ||
@@ -156,0 +156,0 @@ }); |
@@ -7,3 +7,3 @@ export interface RowProps { | ||
editingColIdx?: number; | ||
EditingCellComponent?: React.ComponentType<any>; | ||
EditingCellComponent?: any; | ||
tabIndexStart?: number; | ||
@@ -10,0 +10,0 @@ tabIndexCell?: boolean; |
{ | ||
"name": "react-bootstrap-table-nextgen", | ||
"version": "4.3.8", | ||
"version": "4.3.9", | ||
"description": "Next generation of react-bootstrap-table", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
2959801
8539