react-datasheet-grid
Advanced tools
Comparing version 4.9.1 to 4.9.2
@@ -43,3 +43,3 @@ "use strict"; | ||
// Important to prevent any undesired "tabbing" | ||
tabIndex: -1, ref: ref, | ||
tabIndex: -1, max: "9999-12-31", ref: ref, | ||
// The `pointerEvents` trick is the same than in `textColumn` | ||
@@ -67,3 +67,3 @@ // Only show the calendar symbol on non-empty cells, or when cell is active, otherwise set opacity to 0 | ||
pasteValue: ({ value }) => { | ||
const date = new Date(value.replace(/\.\s|\//g, '-')); | ||
const date = new Date(value.replace(/\.\s?|\//g, '-')); | ||
return isNaN(date.getTime()) ? null : date; | ||
@@ -70,0 +70,0 @@ }, |
@@ -42,3 +42,3 @@ "use strict"; | ||
// Important to prevent any undesired "tabbing" | ||
tabIndex: -1, ref: ref, | ||
tabIndex: -1, max: "9999-12-31", ref: ref, | ||
// The `pointerEvents` trick is the same than in `textColumn` | ||
@@ -64,3 +64,3 @@ // Only show the calendar symbol on non-empty cells, or when cell is active, otherwise set opacity to 0 | ||
pasteValue: ({ value }) => { | ||
const date = new Date(value.replace(/\.\s|\//g, '-')); | ||
const date = new Date(value.replace(/\.\s?|\//g, '-')); | ||
return isNaN(date.getTime()) ? null : date.toISOString().substr(0, 10); | ||
@@ -67,0 +67,0 @@ }, |
{ | ||
"name": "react-datasheet-grid", | ||
"version": "4.9.1", | ||
"version": "4.9.2", | ||
"description": "An Excel-like React component to create beautiful spreadsheets.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
299844