@bpmn-io/properties-panel 3.27.2 → 3.27.3

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.esm.js CHANGED
@@ -2453,6 +2453,7 @@ function FeelEntry(props) {
2453
2453
  }
2454
2454
  }, [value, validate]);
2455
2455
  const onInput = useCallback(newValue => {
2456
+ const value = getValue(element);
2456
2457
  let newValidationError = null;
2457
2458
  if (isFunction(validate)) {
2458
2459
  newValidationError = validate(newValue) || null;
@@ -2463,7 +2464,7 @@ function FeelEntry(props) {
2463
2464
  setValue(newValue, newValidationError);
2464
2465
  }
2465
2466
  setValidationError(newValidationError);
2466
- }, [setValidationError, setValue, validate, value]);
2467
+ }, [element]);
2467
2468
  const onError = useCallback(err => {
2468
2469
  setLocalError(err);
2469
2470
  }, []);
@@ -4117,6 +4118,7 @@ function TextAreaEntry(props) {
4117
4118
  }
4118
4119
  }, [value, validate]);
4119
4120
  const onInput = useCallback(newValue => {
4121
+ const value = getValue(element);
4120
4122
  let newValidationError = null;
4121
4123
  if (isFunction(validate)) {
4122
4124
  newValidationError = validate(newValue) || null;
@@ -4125,7 +4127,7 @@ function TextAreaEntry(props) {
4125
4127
  setValue(newValue, newValidationError);
4126
4128
  }
4127
4129
  setLocalError(newValidationError);
4128
- }, [setLocalError, setValue, validate, value]);
4130
+ }, [element]);
4129
4131
  const error = globalError || localError;
4130
4132
  return jsxs("div", {
4131
4133
  class: classnames('bio-properties-panel-entry', error ? 'has-error' : ''),
@@ -4286,6 +4288,7 @@ function TextfieldEntry(props) {
4286
4288
  }
4287
4289
  }, [value, validate]);
4288
4290
  const onInput = useCallback(newValue => {
4291
+ const value = getValue(element);
4289
4292
  let newValidationError = null;
4290
4293
  if (isFunction(validate)) {
4291
4294
  newValidationError = validate(newValue) || null;
@@ -4294,7 +4297,7 @@ function TextfieldEntry(props) {
4294
4297
  setValue(newValue, newValidationError);
4295
4298
  }
4296
4299
  setLocalError(newValidationError);
4297
- }, [setValue, validate, value]);
4300
+ }, [element]);
4298
4301
  const error = globalError || localError;
4299
4302
  return jsxs("div", {
4300
4303
  class: classnames('bio-properties-panel-entry', error ? 'has-error' : ''),