@bpmn-io/properties-panel 3.34.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
@@ -552,8 +552,6 @@ function useEvent(event, callback, eventBus) {
552
552
  }, [callback, event, eventBus]);
553
553
  }
554
554
 
555
- const KEY_LENGTH = 6;
556
-
557
555
  /**
558
556
  * Create a persistent key factory for plain objects without id.
559
557
  *
@@ -578,7 +576,7 @@ function useKeyFactory(dependencies = []) {
578
576
  const getKey = el => {
579
577
  let key = map.get(el);
580
578
  if (!key) {
581
- key = Math.random().toString().slice(-KEY_LENGTH);
579
+ key = Math.random().toString().slice(-6);
582
580
  map.set(el, key);
583
581
  }
584
582
  return key;
@@ -2497,6 +2495,9 @@ function FeelTextfield(props) {
2497
2495
  const trimmedValue = textData.trim();
2498
2496
  setLocalValue(trimmedValue);
2499
2497
  handleInput(trimmedValue);
2498
+ if (!feelActive && isString(trimmedValue) && trimmedValue.startsWith('=')) {
2499
+ setFocus(trimmedValue.length - 1);
2500
+ }
2500
2501
  event.preventDefault();
2501
2502
  }
2502
2503
  };