@elementor/editor-controls 4.1.0-818 → 4.1.0-819

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/index.mjs CHANGED
@@ -2870,7 +2870,8 @@ var NumberControl = createControl(
2870
2870
  min = -Number.MAX_SAFE_INTEGER,
2871
2871
  step = 1,
2872
2872
  shouldForceInt = false,
2873
- startIcon
2873
+ startIcon,
2874
+ disabled: inputDisabled
2874
2875
  }) => {
2875
2876
  const { value, setValue, placeholder, disabled, restoreValue, propType } = useBoundProp(numberPropTypeUtil);
2876
2877
  const handleChange = (event) => {
@@ -2896,14 +2897,14 @@ var NumberControl = createControl(
2896
2897
  size: "tiny",
2897
2898
  type: "number",
2898
2899
  fullWidth: true,
2899
- disabled,
2900
+ disabled: inputDisabled ?? disabled,
2900
2901
  value: isEmptyOrNaN(value) ? "" : value,
2901
2902
  onInput: handleChange,
2902
2903
  onBlur: restoreValue,
2903
2904
  placeholder: labelPlaceholder ?? (isEmptyOrNaN(placeholder) ? "" : String(placeholder)),
2904
2905
  inputProps: { step, min },
2905
2906
  InputProps: {
2906
- startAdornment: startIcon ? /* @__PURE__ */ React56.createElement(InputAdornment3, { position: "start", disabled }, startIcon) : void 0,
2907
+ startAdornment: startIcon ? /* @__PURE__ */ React56.createElement(InputAdornment3, { position: "start", disabled: inputDisabled ?? disabled }, startIcon) : void 0,
2907
2908
  endAdornment: renderSuffix(propType)
2908
2909
  }
2909
2910
  }