@linzjs/step-ag-grid 7.11.12 → 7.11.13
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
CHANGED
|
@@ -2745,13 +2745,8 @@ var Grid = function (params) {
|
|
|
2745
2745
|
if (!gridReady || !params.autoSelectFirstRow || hasSelectedFirstItem.current || !params.rowData)
|
|
2746
2746
|
return;
|
|
2747
2747
|
hasSelectedFirstItem.current = true;
|
|
2748
|
-
if (isNotEmpty(params.rowData)) {
|
|
2749
|
-
|
|
2750
|
-
params.setExternalSelectedItems([params.rowData[0]]);
|
|
2751
|
-
}
|
|
2752
|
-
else {
|
|
2753
|
-
selectRowsById([params.rowData[0].id]);
|
|
2754
|
-
}
|
|
2748
|
+
if (isNotEmpty(params.rowData) && lodashEs.isEmpty(params.externalSelectedItems)) {
|
|
2749
|
+
selectRowsById([params.rowData[0].id]);
|
|
2755
2750
|
}
|
|
2756
2751
|
}, [gridReady, params, params.autoSelectFirstRow, params.rowData, selectRowsById]);
|
|
2757
2752
|
/**
|