@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.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useContext, useRef, useEffect, useMemo, useState, useCallback } from '../preact/hooks';
|
|
1
|
+
import { useContext, useRef, useEffect, useMemo, useState, useCallback, useLayoutEffect } from '../preact/hooks';
|
|
2
2
|
import { isFunction, isArray, get, assign, set, sortBy, find as find$1, isNumber, debounce } from 'min-dash';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { forwardRef } from '../preact/compat';
|
|
@@ -425,7 +425,7 @@ function useShowEntryEvent(id) {
|
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
427
|
}, [id]);
|
|
428
|
-
|
|
428
|
+
useLayoutEffect(() => {
|
|
429
429
|
if (focus.current && ref.current) {
|
|
430
430
|
if (isFunction(ref.current.focus)) {
|
|
431
431
|
ref.current.focus();
|
|
@@ -5110,7 +5110,7 @@ function FeelTextfield(props) {
|
|
|
5110
5110
|
const editorRef = useShowEntryEvent(id);
|
|
5111
5111
|
const containerRef = useRef();
|
|
5112
5112
|
const feelActive = localValue.startsWith('=') || feel === 'required';
|
|
5113
|
-
const feelOnlyValue = localValue.substring(1);
|
|
5113
|
+
const feelOnlyValue = localValue.startsWith('=') ? localValue.substring(1) : localValue;
|
|
5114
5114
|
const [focus, _setFocus] = useState(undefined);
|
|
5115
5115
|
|
|
5116
5116
|
const setFocus = (offset = 0) => {
|