Skip to content

Move up multiple blocks - content disappear #1479

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

Closed
1 task done
AntoLC opened this issue Mar 3, 2025 · 0 comments · Fixed by #1486
Closed
1 task done

Move up multiple blocks - content disappear #1479

AntoLC opened this issue Mar 3, 2025 · 0 comments · Fixed by #1486
Assignees
Labels
bug Something isn't working

Comments

@AntoLC
Copy link

AntoLC commented Mar 3, 2025

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 💖
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants