@bpmn-io/properties-panel 3.35.0 → 3.35.1

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
@@ -2361,7 +2361,6 @@ function FeelTextfield(props) {
2361
2361
  const [localValue, setLocalValue] = hooks.useState(value);
2362
2362
  const editorRef = useShowEntryEvent(id);
2363
2363
  const containerRef = hooks.useRef();
2364
- const isTogglingFromPasteRef = hooks.useRef(false);
2365
2364
  const onInput = hooks.useCallback(newValue => {
2366
2365
  // we don't commit empty FEEL expressions,
2367
2366
  // but instead serialize them as <undefined>
@@ -2404,6 +2403,9 @@ function FeelTextfield(props) {
2404
2403
  if (feelActive) {
2405
2404
  newValue = '=' + newValue;
2406
2405
  }
2406
+ if (newValue === localValue) {
2407
+ return;
2408
+ }
2407
2409
  setLocalValue(newValue);
2408
2410
  if (useDebounce) {
2409
2411
  handleInput(newValue);
@@ -2416,11 +2418,6 @@ function FeelTextfield(props) {
2416
2418
  }
2417
2419
  };
2418
2420
  const handleOnBlur = e => {
2419
- // Ignore blur when toggling from paste to avoid interference
2420
- if (isTogglingFromPasteRef.current) {
2421
- isTogglingFromPasteRef.current = false;
2422
- return;
2423
- }
2424
2421
  handleInput.cancel?.();
2425
2422
  if (e.target.type === 'checkbox') {
2426
2423
  onInput(e.target.checked);
@@ -2520,7 +2517,6 @@ function FeelTextfield(props) {
2520
2517
  setLocalValue(trimmedValue);
2521
2518
  handleInput(trimmedValue);
2522
2519
  if (!feelActive && minDash.isString(trimmedValue) && trimmedValue.startsWith('=')) {
2523
- isTogglingFromPasteRef.current = true;
2524
2520
  setFocus(trimmedValue.length - 1);
2525
2521
  }
2526
2522
  event.preventDefault();