From 342783eeccb2a45bd7b4d1df08de3bd904b7ceed Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Sun, 27 Nov 2022 15:05:17 +0800 Subject: [PATCH] chore: fix build --- composables/tiptap/suggestion.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composables/tiptap/suggestion.ts b/composables/tiptap/suggestion.ts index 8ceabfb9..7b8975e7 100644 --- a/composables/tiptap/suggestion.ts +++ b/composables/tiptap/suggestion.ts @@ -58,7 +58,8 @@ function createSuggestionRenderer(): SuggestionOptions['render'] { }) }, - onBeforeUpdate(props) { + // Use arrow function here because Nuxt will transform it incorrectly as Vue hook causing the build to fail + onBeforeUpdate: (props) => { component.updateProps({ ...props, isPending: true }) },