@gisce/react-ooui 2.0.0-alpha.16 → 2.0.0-alpha.18
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/package.json
CHANGED
|
@@ -670,7 +670,7 @@ const One2manyInput: React.FC<One2manyInputProps> = (
|
|
|
670
670
|
<One2manyTopBar
|
|
671
671
|
mode={currentView}
|
|
672
672
|
title={getTitle()}
|
|
673
|
-
readOnly={readOnly}
|
|
673
|
+
readOnly={readOnly || false}
|
|
674
674
|
isMany2Many={isMany2many}
|
|
675
675
|
formHasChanges={formHasChanges}
|
|
676
676
|
totalItems={itemsToShow.length}
|
|
@@ -1014,7 +1014,7 @@ function Form(props: FormProps, ref: any) {
|
|
|
1014
1014
|
let mustBlockButtons = false;
|
|
1015
1015
|
|
|
1016
1016
|
try {
|
|
1017
|
-
if (formHasChanges() || getCurrentId() === undefined) {
|
|
1017
|
+
if (!readOnly && (formHasChanges() || getCurrentId() === undefined)) {
|
|
1018
1018
|
mustBlockButtons = true;
|
|
1019
1019
|
updateOperationInProgress(true);
|
|
1020
1020
|
if (submitMode === "2many") {
|