Skip to content

Move up multiple blocks - content disappear #1479

@AntoLC

Description

@AntoLC

Describe the bug
When we move up multiple blocks, sometime the content disappears.
This bug seems to happen when we have multiple links in the content.

To Reproduce

scrnli_q3sf6V1l3Bpe9H.webm

Seems to happen around here:

$anchor.doc.nodesBetween($anchor.pos, $head.pos, (node, _pos, parent) => {
if (parent !== null && parent.eq(parentNode)) {
this.nodes.push(node);
return false;
}
return;
});

Logs

28886.03723a0b571b25df.js:4 Uncaught TypeError: Cannot read properties of undefined (reading 'nodeSize')
    at i.nodesBetween (28886.03723a0b571b25df.js:4:82183)
    at i.textBetween (28886.03723a0b571b25df.js:4:82418)
    at C.textBetween (28886.03723a0b571b25df.js:4:94573)
    at oJ.update (94018.ecfc4dfe86ae539e.js:1:201052)
    at tK.updatePluginViews (849baa33.6a24fe58beb16197.js:1:84466)
    at tK.updateStateInner (849baa33.6a24fe58beb16197.js:1:83505)
    at tK.updateState (849baa33.6a24fe58beb16197.js:1:80653)
    at iA.dispatchTransaction (456144eb.04539d1d8e6e2cc8.js:75:5453)
    at tK.dispatch (849baa33.6a24fe58beb16197.js:1:92273)
    at iA.dispatch (94018.ecfc4dfe86ae539e.js:1:243760)
nodesBetween	@	28886.03723a0b571b25df.js:4
textBetween	@	28886.03723a0b571b25df.js:4
textBetween	@	28886.03723a0b571b25df.js:4
update	@	94018.ecfc4dfe86ae539e.js:1
updatePluginViews	@	849baa33.6a24fe58beb16197.js:1
updateStateInner	@	849baa33.6a24fe58beb16197.js:1
updateState	@	849baa33.6a24fe58beb16197.js:1
dispatchTransaction	@	456144eb.04539d1d8e6e2cc8.js:75
dispatch	@	849baa33.6a24fe58beb16197.js:1
dispatch	@	94018.ecfc4dfe86ae539e.js:1
(anonymous)	@	94018.ecfc4dfe86ae539e.js:1
ou	@	94018.ecfc4dfe86ae539e.js:1
removeBlocks	@	94018.ecfc4dfe86ae539e.js:1
os	@	94018.ecfc4dfe86ae539e.js:1
(anonymous)	@	94018.ecfc4dfe86ae539e.js:1
moveBlocksDown	@	94018.ecfc4dfe86ae539e.js:1
Shift-Mod-ArrowDown	@	94018.ecfc4dfe86ae539e.js:1
(anonymous)	@	456144eb.04539d1d8e6e2cc8.js:1
(anonymous)	@	28886.03723a0b571b25df.js:4
(anonymous)	@	849baa33.6a24fe58beb16197.js:1
someProp	@	849baa33.6a24fe58beb16197.js:1
e0.keydown	@	849baa33.6a24fe58beb16197.js:1
e.dom.addEventListener.e.input.eventHandlers.<computed>	@	849baa33.6a24fe58beb16197.js:1

Misc

  • Browser: Chrome Version 133.0.6943.98 (Official Build) (64-bit)
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions