Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: TabNode does not support setMode when parsing state #7030

Closed
jenslind opened this issue Jan 8, 2025 · 1 comment · Fixed by #7031
Closed

Bug: TabNode does not support setMode when parsing state #7030

jenslind opened this issue Jan 8, 2025 · 1 comment · Fixed by #7031

Comments

@jenslind
Copy link

jenslind commented Jan 8, 2025

Lexical version: 0.23.0

Steps To Reproduce

Easiest way:

  1. Go to https://playground.lexical.dev
  2. Add a TabNode by pressing tab.
  3. Download the state
  4. Upload the downloaded state
  5. Check the console:
Uncaught Error: TabNode does not support setMode
    at TabNode.setMode (main-CzNdJir7.js:48:2776)
    at TabNode.updateFromJSON (main-CzNdJir7.js:46:5856)
    at TabNode.importJSON (main-CzNdJir7.js:48:2502)
    at $parseSerializedNodeImpl (main-CzNdJir7.js:51:29484)
    at $parseSerializedNodeImpl (main-CzNdJir7.js:51:29599)
    at $parseSerializedNodeImpl (main-CzNdJir7.js:51:29599)
    at parseEditorState (main-CzNdJir7.js:51:30019)
    at LexicalEditor.parseEditorState (main-CzNdJir7.js:51:59785)
    at editorStateFromSerializedDocument (main-CzNdJir7.js:74:7631)
    at main-CzNdJir7.js:74:7730

Looks to be related to this change #6970

@jenslind jenslind changed the title Bug: TabNode does not support setMode Bug: TabNode does not support setMode when parsing state Jan 8, 2025
@etrepum
Copy link
Collaborator

etrepum commented Jan 8, 2025

#7031 fixes this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants