@bpmn-io/properties-panel 0.20.1 → 0.20.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
@@ -433,7 +433,7 @@ function useShowEntryEvent(id) {
433
433
  }
434
434
  }
435
435
  }, [id]);
436
- hooks.useEffect(() => {
436
+ hooks.useLayoutEffect(() => {
437
437
  if (focus.current && ref.current) {
438
438
  if (minDash.isFunction(ref.current.focus)) {
439
439
  ref.current.focus();
@@ -5118,7 +5118,7 @@ function FeelTextfield(props) {
5118
5118
  const editorRef = useShowEntryEvent(id);
5119
5119
  const containerRef = hooks.useRef();
5120
5120
  const feelActive = localValue.startsWith('=') || feel === 'required';
5121
- const feelOnlyValue = localValue.substring(1);
5121
+ const feelOnlyValue = localValue.startsWith('=') ? localValue.substring(1) : localValue;
5122
5122
  const [focus, _setFocus] = hooks.useState(undefined);
5123
5123
 
5124
5124
  const setFocus = (offset = 0) => {