Skip to content

Commit

Permalink
Allow ref for insertBefore to be null
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Apr 4, 2024
1 parent 6b48eca commit 8f15877
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- Fix overload declarations for `quill.formatText()` and other methods
- Expose Bounds type for getBounds()
- Expose Range type
- Allow ref for insertBefore to be null

# 2.0.0-rc.4

Expand Down
2 changes: 1 addition & 1 deletion packages/quill/src/blots/scroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class Scroll extends ScrollBlot {
this.optimize();
}

insertBefore(blot: Blot, ref?: Blot) {
insertBefore(blot: Blot, ref?: Blot | null) {
if (blot.statics.scope === Scope.INLINE_BLOT) {
const wrapper = this.scroll.create(
this.statics.defaultChild.blotName,
Expand Down

0 comments on commit 8f15877

Please sign in to comment.