[x] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
[x] I have read the documentation and cannot find an answer.
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:
Create a directive with a nested lexical editor and some action that sets its attributes with updateMdastNode
Include this within an instance of itself, within a table cell
Button will have no action, but button on the parent will work as it's a direct child of the TableCell
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):
OS: [e.g. MacOS, Windows] - Windows can act funny sometimes.
Browser [e.g. Chrome, Safari]
Additional context
Will raise a merge request with the fix
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