@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.esm.js CHANGED
@@ -2340,7 +2340,6 @@ function FeelTextfield(props) {
2340
2340
  const [localValue, setLocalValue] = useState(value);
2341
2341
  const editorRef = useShowEntryEvent(id);
2342
2342
  const containerRef = useRef();
2343
- const isTogglingFromPasteRef = useRef(false);
2344
2343
  const onInput = useCallback(newValue => {
2345
2344
  // we don't commit empty FEEL expressions,
2346
2345
  // but instead serialize them as <undefined>
@@ -2383,6 +2382,9 @@ function FeelTextfield(props) {
2383
2382
  if (feelActive) {
2384
2383
  newValue = '=' + newValue;
2385
2384
  }
2385
+ if (newValue === localValue) {
2386
+ return;
2387
+ }
2386
2388
  setLocalValue(newValue);
2387
2389
  if (useDebounce) {
2388
2390
  handleInput(newValue);
@@ -2395,11 +2397,6 @@ function FeelTextfield(props) {
2395
2397
  }
2396
2398
  };
2397
2399
  const handleOnBlur = e => {
2398
- // Ignore blur when toggling from paste to avoid interference
2399
- if (isTogglingFromPasteRef.current) {
2400
- isTogglingFromPasteRef.current = false;
2401
- return;
2402
- }
2403
2400
  handleInput.cancel?.();
2404
2401
  if (e.target.type === 'checkbox') {
2405
2402
  onInput(e.target.checked);
@@ -2499,7 +2496,6 @@ function FeelTextfield(props) {
2499
2496
  setLocalValue(trimmedValue);
2500
2497
  handleInput(trimmedValue);
2501
2498
  if (!feelActive && isString(trimmedValue) && trimmedValue.startsWith('=')) {
2502
- isTogglingFromPasteRef.current = true;
2503
2499
  setFocus(trimmedValue.length - 1);
2504
2500
  }
2505
2501
  event.preventDefault();