hey icon indicating copy to clipboard operation
hey copied to clipboard

Publication draft lost if containing list items

Open foolo opened this issue 2 years ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Steps To Reproduce

  1. On start page, write a draft with a list item (a line starting with a dash: - example) without publishing

  2. Close the modal without publiishing Screenshot_2023-01-28_17-19-41

  3. Open the modal again

Current Behavior

Modal is empty Error message in console:

next-dev.js?36dd:20 Error: Create node: Attempted to create node ListItemNode that was not configured to be used on the editor.
    at errorOnTypeKlassMismatch (Lexical.dev.js?cb45:7415:1)
    at new LexicalNode (Lexical.dev.js?cb45:6705:1)
    at new ElementNode (Lexical.dev.js?cb45:7487:1)
    at new ListItemNode (LexicalList.dev.js?b341:615:1)
    at Object.$createListItemNode (LexicalList.dev.js?b341:1030:1)
    ...

Expected Behavior

Should show the draft text from before (- example)

What platform(s) does this occur on?

Web

What browser(s) does this occur on?

Chrome

Anything else?

No response

foolo avatar Jan 28 '23 16:01 foolo