-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Inconsistency in setBlock/wrapBlock behavior #674
Comments
This issue hasn't had a response in a while, and it's unclear if it's still present in the latest versions of Slate. To keep the issues easier to manage, since there are so many being opened every day, I'm going to close this old one out. But if you notice that the bug is still happening, please feel free to comment and it can be revisited. It might be an edge case that not many people run into, in which case the fastest way to get it fixed would probably be to write a pull request for it. Thanks for understanding! |
@ianstormtaylor This is still occurring in the latest version of Slate. Here is an updated JSFiddle - https://jsfiddle.net/u2r1e2wm/2/ My guess is that the problem is somewhere in the code for |
Fixed by #3093. |
I came across a case where
setBlock
followed bywrapBlock
works differently when done at the beginning of the doc and when done someplace else.Here is a simple JSFiddle illustrating that - https://jsfiddle.net/u2r1e2wm/1/
I am not sure if I'm misunderstanding the behavior or missing some detail here, but wanted to bring it up since nothing else was apparent to me.
The text was updated successfully, but these errors were encountered: