@ahmadmubarak98/namozaj 1.11.6 → 1.11.7
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/main.d.ts +1 -1
- package/dist/namozaj.js +1 -1
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -352,7 +352,7 @@ export declare type NamozajPhoneFieldCountry = CountryIso2;
|
|
|
352
352
|
|
|
353
353
|
export declare interface NamozajProps {
|
|
354
354
|
fields: (NamozajBlock)[];
|
|
355
|
-
dirtyLock?: '
|
|
355
|
+
dirtyLock?: 'defaultValue' | 'onChange';
|
|
356
356
|
unloadConfirm?: boolean;
|
|
357
357
|
localization?: NamozajLocalizationOptions;
|
|
358
358
|
stepper?: NamozajStepperConfig;
|
package/dist/namozaj.js
CHANGED
|
@@ -87876,7 +87876,7 @@ const Form = React__default.forwardRef(
|
|
|
87876
87876
|
});
|
|
87877
87877
|
}, [e.error]), useEffect(() => {
|
|
87878
87878
|
const ce = (We) => {
|
|
87879
|
-
if (g.formState.isDirty && e.unloadConfirm && (We.preventDefault(), !window.confirm()))
|
|
87879
|
+
if (g.formState.isDirty && e.unloadConfirm && e.dirtyLock === "onChange" && (We.preventDefault(), !window.confirm()))
|
|
87880
87880
|
return history.pushState(null, "", window.location.href), !1;
|
|
87881
87881
|
};
|
|
87882
87882
|
if (!e.isNested)
|