@mittwald/flow-react-components 1.3.0 → 1.3.1

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/MIGRATION.md CHANGED
@@ -560,15 +560,26 @@ or a `form.reset()` the modal closes right away, and actions in the
560
560
  `<ActionGroup />` as well as the close button in the heading still close it
561
561
  immediately.
562
562
 
563
- Nothing to do if you had the flag enabled. To keep the previous behavior, switch
564
- the default off (see below).
563
+ Nothing to do if you had the flag enabled. To keep the previous behavior, opt
564
+ out per form:
565
+
566
+ ```diff
567
+ - <Form form={form} onSubmit={onSubmit}>
568
+ + <Form form={form} onSubmit={onSubmit} confirmModalCloseOnUnsavedChanges={false}>
569
+ ```
570
+
571
+ Or switch the default off for the whole app with the
572
+ `<ComponentDefaultsProvider />` (see below).
565
573
 
566
574
  **Apply:** No code change required — if you had
567
575
  `requireCloseModalConfirmationOnUnsavedChanges` enabled, the new default matches
568
- it. To keep the previous behaviour (closing without confirmation), set
569
- `Form: { confirmModalCloseOnUnsavedChanges: false }` via
570
- `<ComponentDefaultsProvider />`, or its deprecated equivalent, the
571
- `flags.requireCloseModalConfirmationOnUnsavedChanges = false` assignment.
576
+ it. To keep the previous behaviour (closing without confirmation), pass
577
+ `confirmModalCloseOnUnsavedChanges={false}` to `Form` — this also works in
578
+ remote apps (`@mittwald/flow-remote-react-components/react-hook-form`). To
579
+ switch it off app-wide, set `Form: { confirmModalCloseOnUnsavedChanges: false }`
580
+ via `<ComponentDefaultsProvider />`, or outside of remote apps its deprecated
581
+ equivalent, the `flags.requireCloseModalConfirmationOnUnsavedChanges = false`
582
+ assignment.
572
583
 
573
584
  ---
574
585