[BUG] Nested NestedLexicalEditor instances within table cell fail to update parentEditor MDX #570
Closed
2 tasks done
Labels
bug
Something isn't working
If you want to ask for support or request features, sponsor the project and contact me over email.
Describe the bug
A NestedLexicalEditor within a NestedLexicalEditor (to any depth) will fail to update with updateMdastNode when within a table cell.
This is due to the priority on the NESTED_EDITOR_UPDATED_COMMAND within TableEditor, it effectively captures the dispatched event before the change has been able to propagate, and sets state with the older value.
Lowering this state to match NestedLexicalEditor (COMMAND_PRIORITY_EDITOR) fixes the issue.
Reproduction
Working on adding an example
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Updating state within any depth should work
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Will raise a merge request with the fix
The text was updated successfully, but these errors were encountered: