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: Passing an empty ParagraphNode to $dfs incorrectly returns content from subsequent paragraphs #5976

Closed
matsuyama-k1 opened this issue Apr 27, 2024 · 0 comments · Fixed by #5977

Comments

@matsuyama-k1
Copy link
Contributor

Lexical version: 0.14.5

Steps To Reproduce

  1. create empty ParagraphNode and following ParagraphNodes
  2. search empty paragraph with $dfs returns following paragraph nodes too

Link to code example: https://codesandbox.io/p/sandbox/icy-smoke-3j6p79

The current behavior

$dfs returns next paragraph contents when pass empty paragraph.
Screenshot 2024-04-27 at 18 35 11

The expected behavior

$dfs returns only itself when pass empty paragraph.

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