react-table-edit 0.8.1 → 0.8.2
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 +5 -2
- package/dist/index.mjs +5 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2472,11 +2472,14 @@ var TableEdit = (0, import_react16.forwardRef)((props, ref) => {
|
|
|
2472
2472
|
}
|
|
2473
2473
|
}
|
|
2474
2474
|
}
|
|
2475
|
-
changeDataSource(dataSource);
|
|
2476
2475
|
if (dataSourceChange) {
|
|
2477
2476
|
dataSourceChange(dataSource);
|
|
2478
2477
|
}
|
|
2479
2478
|
}
|
|
2479
|
+
} else {
|
|
2480
|
+
if (dataSourceChange) {
|
|
2481
|
+
dataSourceChange(dataSource);
|
|
2482
|
+
}
|
|
2480
2483
|
}
|
|
2481
2484
|
};
|
|
2482
2485
|
const handleKeyPress = (e) => {
|
|
@@ -2578,7 +2581,7 @@ var TableEdit = (0, import_react16.forwardRef)((props, ref) => {
|
|
|
2578
2581
|
optionsSelect = col.selectSettings?.options ? col.selectSettings?.validateOption ? col.selectSettings?.options.filter((item) => col.selectSettings?.validateOption(item, row)) : col.selectSettings?.options : [];
|
|
2579
2582
|
}
|
|
2580
2583
|
if (col.selectSettings?.isMulti) {
|
|
2581
|
-
valueSelect =
|
|
2584
|
+
valueSelect = row[col.field];
|
|
2582
2585
|
} else {
|
|
2583
2586
|
valueSelect = !isNullOrUndefined(row[col.field]) && row[col.field] !== "" ? optionsSelect?.find((val) => val[col.selectSettings?.fieldValue ?? "value"] === row[col.field]) : "";
|
|
2584
2587
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -2437,11 +2437,14 @@ var TableEdit = forwardRef3((props, ref) => {
|
|
|
2437
2437
|
}
|
|
2438
2438
|
}
|
|
2439
2439
|
}
|
|
2440
|
-
changeDataSource(dataSource);
|
|
2441
2440
|
if (dataSourceChange) {
|
|
2442
2441
|
dataSourceChange(dataSource);
|
|
2443
2442
|
}
|
|
2444
2443
|
}
|
|
2444
|
+
} else {
|
|
2445
|
+
if (dataSourceChange) {
|
|
2446
|
+
dataSourceChange(dataSource);
|
|
2447
|
+
}
|
|
2445
2448
|
}
|
|
2446
2449
|
};
|
|
2447
2450
|
const handleKeyPress = (e) => {
|
|
@@ -2543,7 +2546,7 @@ var TableEdit = forwardRef3((props, ref) => {
|
|
|
2543
2546
|
optionsSelect = col.selectSettings?.options ? col.selectSettings?.validateOption ? col.selectSettings?.options.filter((item) => col.selectSettings?.validateOption(item, row)) : col.selectSettings?.options : [];
|
|
2544
2547
|
}
|
|
2545
2548
|
if (col.selectSettings?.isMulti) {
|
|
2546
|
-
valueSelect =
|
|
2549
|
+
valueSelect = row[col.field];
|
|
2547
2550
|
} else {
|
|
2548
2551
|
valueSelect = !isNullOrUndefined(row[col.field]) && row[col.field] !== "" ? optionsSelect?.find((val) => val[col.selectSettings?.fieldValue ?? "value"] === row[col.field]) : "";
|
|
2549
2552
|
}
|