@dooherceg/material-react-table 3.2.17 → 3.2.19
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.esm.js +3 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2713,9 +2713,8 @@ const handleUpdateRow = ({ getRowId, setRowsState, }) => {
|
|
|
2713
2713
|
});
|
|
2714
2714
|
return previousRows.map((row, index) => {
|
|
2715
2715
|
const rowId = getResolvedRowId(row, index, undefined, getRowId);
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
: row;
|
|
2716
|
+
const updatedRow = rowId !== undefined ? rowById.get(rowId) : undefined;
|
|
2717
|
+
return updatedRow !== undefined ? Object.assign(Object.assign({}, row), updatedRow) : row;
|
|
2719
2718
|
});
|
|
2720
2719
|
});
|
|
2721
2720
|
};
|
|
@@ -7200,7 +7199,7 @@ const MRT_NewEntryFormProvider = ({ table, children, }) => {
|
|
|
7200
7199
|
yield ((_a = formConfig === null || formConfig === void 0 ? void 0 : formConfig.onCancel) === null || _a === void 0 ? void 0 : _a.call(formConfig, { form: methods, mode, table }));
|
|
7201
7200
|
setNewEntryModal({ open: false });
|
|
7202
7201
|
});
|
|
7203
|
-
return (jsx(MRT_NewEntryFormActionsContext.Provider, { value: { handleCancel, handleSave }, children: jsx(RHF_FormProvider, { methods: methods, onSubmit: handleSave, children: children }) }));
|
|
7202
|
+
return (jsx(MRT_NewEntryFormActionsContext.Provider, { value: { handleCancel, handleSave }, children: jsx(RHF_FormProvider, { methods: methods, onSubmit: handleSave, style: { display: 'flex', flexDirection: 'column', overflow: 'auto' }, children: children }) }));
|
|
7204
7203
|
};
|
|
7205
7204
|
|
|
7206
7205
|
// Maps TModalPosition.vertical to a CSS alignItems value.
|