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 CHANGED
@@ -5,7 +5,7 @@
5
5
  [![NPM version](https://img.shields.io/npm/v/beautiful-grid.svg?style=flat)](https://npmjs.org/package/beautiful-grid)
6
6
  [![NPM downloads](https://img.shields.io/npm/dm/beautiful-grid.svg?style=flat)](https://npmjs.org/package/beautiful-grid)
7
7
  [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
8
- [![Coverage](https://img.shields.io/badge/coverage-84.51%25-brightgreen.svg)](https://github.com/axisj/beautiful-grid/actions/workflows/tests.yml)
8
+ [![Coverage](https://img.shields.io/badge/coverage-84.52%25-brightgreen.svg)](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
 
@@ -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
- if (!column || column.editable === false)
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,
@@ -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
- if (!column || column.editable === false)
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beautiful-grid",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "A beautiful, powerful, open-source React Data Grid.",
5
5
  "homepage": "https://bgrid.axisj.com",
6
6
  "bugs": {