@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.
- package/dist/lib/browser/index.mjs +3 -3
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/types/src/extensions/markdown/action.d.ts.map +1 -1
- package/package.json +24 -24
- package/src/components/Toolbar/Toolbar.tsx +1 -1
- package/src/extensions/command/state.ts +2 -2
- package/src/extensions/markdown/action.ts +1 -3
|
@@ -1196,7 +1196,7 @@ var commandState = StateField3.define({
|
|
|
1196
1196
|
}
|
|
1197
1197
|
});
|
|
1198
1198
|
}
|
|
1199
|
-
|
|
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
|
-
|
|
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
|
-
|
|
4755
|
+
requestAnimationFrame(async () => {
|
|
4756
4756
|
const f = acceptedFiles[0];
|
|
4757
4757
|
const file = new File([
|
|
4758
4758
|
f
|