@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.js CHANGED
@@ -2474,6 +2474,7 @@ function FeelEntry(props) {
2474
2474
  }
2475
2475
  }, [value, validate]);
2476
2476
  const onInput = hooks.useCallback(newValue => {
2477
+ const value = getValue(element);
2477
2478
  let newValidationError = null;
2478
2479
  if (minDash.isFunction(validate)) {
2479
2480
  newValidationError = validate(newValue) || null;
@@ -2484,7 +2485,7 @@ function FeelEntry(props) {
2484
2485
  setValue(newValue, newValidationError);
2485
2486
  }
2486
2487
  setValidationError(newValidationError);
2487
- }, [setValidationError, setValue, validate, value]);
2488
+ }, [element]);
2488
2489
  const onError = hooks.useCallback(err => {
2489
2490
  setLocalError(err);
2490
2491
  }, []);
@@ -4138,6 +4139,7 @@ function TextAreaEntry(props) {
4138
4139
  }
4139
4140
  }, [value, validate]);
4140
4141
  const onInput = hooks.useCallback(newValue => {
4142
+ const value = getValue(element);
4141
4143
  let newValidationError = null;
4142
4144
  if (minDash.isFunction(validate)) {
4143
4145
  newValidationError = validate(newValue) || null;
@@ -4146,7 +4148,7 @@ function TextAreaEntry(props) {
4146
4148
  setValue(newValue, newValidationError);
4147
4149
  }
4148
4150
  setLocalError(newValidationError);
4149
- }, [setLocalError, setValue, validate, value]);
4151
+ }, [element]);
4150
4152
  const error = globalError || localError;
4151
4153
  return jsxRuntime.jsxs("div", {
4152
4154
  class: classnames('bio-properties-panel-entry', error ? 'has-error' : ''),
@@ -4307,6 +4309,7 @@ function TextfieldEntry(props) {
4307
4309
  }
4308
4310
  }, [value, validate]);
4309
4311
  const onInput = hooks.useCallback(newValue => {
4312
+ const value = getValue(element);
4310
4313
  let newValidationError = null;
4311
4314
  if (minDash.isFunction(validate)) {
4312
4315
  newValidationError = validate(newValue) || null;
@@ -4315,7 +4318,7 @@ function TextfieldEntry(props) {
4315
4318
  setValue(newValue, newValidationError);
4316
4319
  }
4317
4320
  setLocalError(newValidationError);
4318
- }, [setValue, validate, value]);
4321
+ }, [element]);
4319
4322
  const error = globalError || localError;
4320
4323
  return jsxRuntime.jsxs("div", {
4321
4324
  class: classnames('bio-properties-panel-entry', error ? 'has-error' : ''),