@dxos/react-ui-editor 0.4.8-main.4f17ba9 → 0.4.8-main.4f9d99e

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.
@@ -1196,7 +1196,7 @@ var commandState = StateField3.define({
1196
1196
  }
1197
1197
  });
1198
1198
  }
1199
- setTimeout(() => view2.focus());
1199
+ requestAnimationFrame(() => view2.focus());
1200
1200
  });
1201
1201
  }
1202
1202
  };
@@ -3411,7 +3411,7 @@ var processAction = (view, action) => {
3411
3411
  createComment(view);
3412
3412
  break;
3413
3413
  }
3414
- setTimeout(() => {
3414
+ requestAnimationFrame(() => {
3415
3415
  if (!view.hasFocus) {
3416
3416
  view.focus();
3417
3417
  }
@@ -4752,7 +4752,7 @@ var MarkdownCustom = ({ onUpload } = {}) => {
4752
4752
  });
4753
4753
  useEffect3(() => {
4754
4754
  if (onUpload && acceptedFiles.length) {
4755
- setTimeout(async () => {
4755
+ requestAnimationFrame(async () => {
4756
4756
  const f = acceptedFiles[0];
4757
4757
  const file = new File([
4758
4758
  f