@jspreadsheet/react 12.0.0-beta.23 → 12.0.0-beta.24
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/dist/index.js +6 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3,10 +3,12 @@ import React, { useRef, useEffect } from "react";
|
|
|
3
3
|
import jspreadsheet from 'jspreadsheet';
|
|
4
4
|
|
|
5
5
|
const extractWorksheetProperties = function(props) {
|
|
6
|
-
|
|
6
|
+
let options = {
|
|
7
7
|
minDimensions: [10, 10],
|
|
8
8
|
...props
|
|
9
|
-
}
|
|
9
|
+
}
|
|
10
|
+
delete options.children;
|
|
11
|
+
this.worksheets.push(options);
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
if (typeof(window) !== 'undefined') {
|
|
@@ -28,6 +30,8 @@ const Spreadsheet = React.forwardRef((props, mainReference) => {
|
|
|
28
30
|
|
|
29
31
|
// Get the properties for the spreadsheet
|
|
30
32
|
let options = { ...props };
|
|
33
|
+
delete options.ref;
|
|
34
|
+
delete options.children;
|
|
31
35
|
|
|
32
36
|
if (! options.worksheets) {
|
|
33
37
|
// Create the worksheets
|
package/package.json
CHANGED