@bpmn-io/properties-panel 0.20.1 → 0.20.2

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
@@ -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
- useEffect(() => {
428
+ useLayoutEffect(() => {
429
429
  if (focus.current && ref.current) {
430
430
  if (isFunction(ref.current.focus)) {
431
431
  ref.current.focus();