iddan / react-spreadsheet

Simple, customizable yet performant spreadsheet for React
https://iddan.github.io/react-spreadsheet
MIT License
1.34k stars 157 forks source link

CellComponentProps is not working when passing copied: false #359

Closed Milan-Koladiya closed 1 year ago

Milan-Koladiya commented 1 year ago

Goal:- my goal is to prevent cells from copy

I have tried CellComponentProps and passed copied: false but still it copies. did I use it in the wrong way? please check the below code.

<Spreadsheet CellComponentProps={(cell) => ({ copied: false, ...cell, })} onChange={(updatedData) => setUpdatedGridData({ ...updatedGridData, income: updatedData })} data={gridData.income} columnLabels={columnHeaders} rowLabels={incomeGridTitle} />