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

Cell.setCellChildren misbehaves on cells with direct text children #3

Open
MichaelDarr opened this issue Oct 13, 2021 · 0 comments
Open

Comments

@MichaelDarr
Copy link
Contributor

Calling Cell.setCellChildren on a cell whose direct children are text nodes causes the entire cell to be deleted.

I thought this would be solved by wrapping the whole setter operation (removal of all child nodes followed by insertion of new nodes) in an Editor.withoutNormalizing block. However, this wrapper did not affect the issue at all: omission does not break currently working cases and inclusion does not fix this bug.

I believe that this has to do with Slate's normalization layers, of which I do not yet have a complete understanding.

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

No branches or pull requests

1 participant