Open haihoang20 opened 2 years ago
If anyone comes across this issue, it can be easily fixed by using the parsePaste
prop on the .trim()
call:
<DataSheet
parsePaste={(pastedString) => {
return pastedString.trim().split(/\r\n|\n|\r/).map(row => row.split('\t'))
}
/>
Fixed the issue for me
Help please! How do I do this @christiankaindl
There's a bug that happens on Windows where copying and pasting multiple cells from MS Excel will paste an extra empty cell. This can unintentionally overwrite existing cells as seen in the screenshot.
This bug is reproducible on the demo as well https://nadbm.github.io/react-datasheet/
This does not happen on Mac.