@gisce/react-ooui 2.0.0-alpha.16 → 2.0.0-alpha.17

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gisce/react-ooui",
3
- "version": "2.0.0-alpha.16",
3
+ "version": "2.0.0-alpha.17",
4
4
  "engines": {
5
5
  "node": "20.5.0"
6
6
  },
@@ -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") {