beautiful-grid 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/cjs/components/Table.js +3 -1
- package/esm/components/Table.js +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://npmjs.org/package/beautiful-grid)
|
|
6
6
|
[](https://npmjs.org/package/beautiful-grid)
|
|
7
7
|
[](LICENSE)
|
|
8
|
-
[](https://github.com/axisj/beautiful-grid/actions/workflows/tests.yml)
|
|
9
9
|
|
|
10
10
|
BeautifulGrid is a high-performance, feature-packed, and beautifully designed open-source React Data Grid for data-heavy business applications. It combines zero-runtime-CSS styling with virtual scrolling, spreadsheet-like cell selection and clipboard operations, built-in and plugin cell editing, multi-level grouped headers, filtering & sorting toolboxes, server/client pagination, pivot table transforms, row reordering, and flexible theming.
|
|
11
11
|
|
package/cjs/components/Table.js
CHANGED
|
@@ -1249,7 +1249,9 @@ function Table(props) {
|
|
|
1249
1249
|
clipboardRow.forEach(function (clipboardValue, columnOffset) {
|
|
1250
1250
|
var columnIndex = startColumnIndex + columnOffset;
|
|
1251
1251
|
var column = columns[columnIndex];
|
|
1252
|
-
|
|
1252
|
+
// Pasting mutates row data without opening an editor, so only columns
|
|
1253
|
+
// explicitly opted into editing may receive clipboard values.
|
|
1254
|
+
if (!column || column.editable !== true)
|
|
1253
1255
|
return;
|
|
1254
1256
|
var logicalCell = (0, utils_1.resolveLogicalCell)(logicalResolutionData, props.cellMergeOptions, {
|
|
1255
1257
|
rowIndex: rowIndex,
|
package/esm/components/Table.js
CHANGED
|
@@ -1065,7 +1065,9 @@ function Table(props) {
|
|
|
1065
1065
|
clipboardRow.forEach((clipboardValue, columnOffset) => {
|
|
1066
1066
|
const columnIndex = startColumnIndex + columnOffset;
|
|
1067
1067
|
const column = columns[columnIndex];
|
|
1068
|
-
|
|
1068
|
+
// Pasting mutates row data without opening an editor, so only columns
|
|
1069
|
+
// explicitly opted into editing may receive clipboard values.
|
|
1070
|
+
if (!column || column.editable !== true)
|
|
1069
1071
|
return;
|
|
1070
1072
|
const logicalCell = resolveLogicalCell(logicalResolutionData, props.cellMergeOptions, {
|
|
1071
1073
|
rowIndex,
|