@azrico/reactgrid 1.3.36 → 1.3.38
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.
|
@@ -362,7 +362,9 @@ function DataGridCore(props) {
|
|
|
362
362
|
...props.static_gridOptions,
|
|
363
363
|
...props.dynamic_gridOptions,
|
|
364
364
|
rowIndexColumn: true,
|
|
365
|
-
handle: ref =>
|
|
365
|
+
handle: ref => {
|
|
366
|
+
if (ref) props.gridRef.current = ref.current;
|
|
367
|
+
},
|
|
366
368
|
className: 'azgrid-flexed',
|
|
367
369
|
columns: props.columns,
|
|
368
370
|
dataSource: props.dataSource
|
package/package.json
CHANGED
package/src/views/DataGrid.tsx
CHANGED
|
@@ -548,7 +548,9 @@ function DataGridCore(props: DataGridWrapperProps) {
|
|
|
548
548
|
{...props.static_gridOptions}
|
|
549
549
|
{...props.dynamic_gridOptions}
|
|
550
550
|
rowIndexColumn
|
|
551
|
-
handle={(ref) =>
|
|
551
|
+
handle={(ref) => {
|
|
552
|
+
if (ref) props.gridRef.current = ref.current as any;
|
|
553
|
+
}}
|
|
552
554
|
className={'azgrid-flexed'}
|
|
553
555
|
columns={props.columns}
|
|
554
556
|
dataSource={props.dataSource}
|