From 71cff5ce08bb81b8092fcce2cb0f40fe02375863 Mon Sep 17 00:00:00 2001 From: Kyle Alwyn Date: Sat, 18 Feb 2023 13:47:11 -0800 Subject: [PATCH] Queue flushSync microtask (#3533) Do the same thing as https://github.com/ueberdosis/tiptap/pull/3188 --- src/EditorContent.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/EditorContent.tsx b/src/EditorContent.tsx index 802418461d6..b4ce03b00e3 100644 --- a/src/EditorContent.tsx +++ b/src/EditorContent.tsx @@ -79,7 +79,9 @@ export class PureEditorContent extends React.Component { + flushSync(fn) + }) } else { fn() }