finform-react-builder 1.6.1 → 1.6.2

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.
@@ -32,6 +32,7 @@ export interface BaseField {
32
32
  placeholder?: string;
33
33
  required?: boolean;
34
34
  disabled?: boolean;
35
+ copyWhenDisabled?: boolean;
35
36
  helperText?: string;
36
37
  validation?: ValidationRule;
37
38
  step?: number;
package/dist/index.es.js CHANGED
@@ -9280,7 +9280,7 @@ const Fm = ({ field: e, control: t, errors: r, baseUrl: n, apiHeaders: i, formDa
9280
9280
  default:
9281
9281
  return null;
9282
9282
  }
9283
- }, z = Ne(() => e.disabled ? !["title", "section", "image", "component"].includes(e.type) : !1, [e.disabled, e.type]), N = Ve(async () => {
9283
+ }, z = Ne(() => !e.disabled || e.copyWhenDisabled === !1 ? !1 : !["title", "section", "image", "component"].includes(e.type), [e.disabled, e.copyWhenDisabled, e.type]), N = Ve(async () => {
9284
9284
  try {
9285
9285
  const W = a ? a[e.name] : void 0;
9286
9286
  let ie = "";