From a072ba25c0120b64ed6df92533debc765857a6c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Thu, 4 Apr 2024 08:55:09 +0200 Subject: [PATCH] fix: Update heading extractor initially MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/nodes/Heading/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nodes/Heading/index.js b/src/nodes/Heading/index.js index 4bb5c31b810..bb5adac9ac2 100644 --- a/src/nodes/Heading/index.js +++ b/src/nodes/Heading/index.js @@ -9,7 +9,7 @@ const onUpdate = debounce(({ editor }) => { // Only run if editor still exists (prevent dangling debounced extractHeadings function) extractHeadings(editor) } -}, 900) +}, 900, { immediate: true }) const Heading = TipTapHeading.extend({ addAttributes() {