From 74fb75c5c44a7ed7b6e8907096e081c9c9514beb Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Wed, 21 Apr 2021 14:40:16 +0200 Subject: [PATCH] Fix isBlockElement() --- ts/editor/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/editor/helpers.ts b/ts/editor/helpers.ts index e8db7b316..cffcb1480 100644 --- a/ts/editor/helpers.ts +++ b/ts/editor/helpers.ts @@ -105,7 +105,7 @@ const isParagraph = (element: Element): element is HTMLParamElement => const isBlockElement = ( element: Element ): element is HTMLLIElement & HTMLParamElement => - isListItem(element) || isBlockElement(element); + isListItem(element) || isParagraph(element); export const getListItem = getAnchorParent(isListItem); export const getParagraph = getAnchorParent(isParagraph);