You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe trailingBreaks are no longer added to all expected locations when a transaction that modifies widget decorations is dispatched. I bisected down the changed behaviour to prosemirror-view version 1.31.0 and the commits do mention decorations. Debugging the in the client also lead to updateChildren but that is how far I got.
My simplified repro is a widget decoration to show placeholder text and a transaction to replace the content of a document:
Document with a single empty paragraph, before transaction:
After transaction with prosemirror-view 1.30.2: Both blocks have trailing break
After transaction with prosemirror-view 1.31.0: Paragraph has no trailing break, leaving it collapsed.
The bug is not reproduced if the plugin is removed or modified to not branch, ie always return either the DecorationSet or empty, or if the transaction inserts two paragraphs. It also works as expected when the editor is loaded with the resulting document, so it appears limited to updating.
Thank you and have a good day.
The text was updated successfully, but these errors were encountered:
I believe trailingBreaks are no longer added to all expected locations when a transaction that modifies widget decorations is dispatched. I bisected down the changed behaviour to
prosemirror-view
version1.31.0
and the commits do mention decorations. Debugging the in the client also lead toupdateChildren
but that is how far I got.My simplified repro is a widget decoration to show placeholder text and a transaction to replace the content of a document:
To trigger the bug dispatch a transaction to replace the doc content with two nodes:
Testing in Chrome:
Document with a single empty paragraph, before transaction:

After transaction with prosemirror-view

1.30.2
: Both blocks have trailing breakAfter transaction with prosemirror-view

1.31.0
: Paragraph has no trailing break, leaving it collapsed.The bug is not reproduced if the plugin is removed or modified to not branch, ie always return either the
DecorationSet
orempty
, or if the transaction inserts two paragraphs. It also works as expected when the editor is loaded with the resulting document, so it appears limited to updating.Thank you and have a good day.
The text was updated successfully, but these errors were encountered: