Skip to content

Commit

Permalink
🏷️ Fix Block.moveChildren() signature
Browse files Browse the repository at this point in the history
The `Block` blot inherits from `parchment`'s `ParentBlot`, where the
`ref` argument [is optional][1].

This change updates the `Block` signature to match its parent.

[1]: https://github.com/quilljs/parchment/blob/634e50f4d73a3351952250146510332dbc0af961/src/blot/abstract/parent.ts#L238
  • Loading branch information
alecgibson committed Feb 3, 2023
1 parent d2f689f commit a15c342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blots/block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class Block extends BlockBlot {
return this.cache.length;
}

moveChildren(target, ref) {
moveChildren(target, ref?) {
super.moveChildren(target, ref);
this.cache = {};
}
Expand Down

0 comments on commit a15c342

Please sign in to comment.