Skip to content

Conversation

@duncanmcclean
Copy link
Member

This pull request attempts to fix an issue when duplicating the last set in Bard.

TipTap was throwing a "RangeError: Position 9 out of range" error because the position we were passing to setAt() was larger than the number of nodes in the document. Calculating the position inside the nextTick() right before we set it seems to work without any issues.

Fixes #13368

@jasonvarga jasonvarga merged commit f293c96 into master Jan 8, 2026
12 checks passed
@jasonvarga jasonvarga deleted the duplicate-bard-set branch January 8, 2026 14:56
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

Successfully merging this pull request may close these issues.

[6.x] Bard fieldtype cannot duplicate Set when last child in editor

3 participants