File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
# [ Unreleased]
2
2
3
+ - Allow ref blots to be null
4
+
3
5
# 3.0.0-rc.0
4
6
5
7
- Keep identify names in built code bundle
Original file line number Diff line number Diff line change @@ -96,8 +96,8 @@ export interface Parent extends Blot {
96
96
index : number ,
97
97
length : number ,
98
98
) : T [ ] ;
99
- insertBefore ( child : Blot , refNode ?: Blot ) : void ;
100
- moveChildren ( parent : Parent , refNode ?: Blot ) : void ;
99
+ insertBefore ( child : Blot , refNode ?: Blot | null ) : void ;
100
+ moveChildren ( parent : Parent , refNode ?: Blot | null ) : void ;
101
101
path ( index : number , inclusive ?: boolean ) : [ Blot , number ] [ ] ;
102
102
removeChild ( child : Blot ) : void ;
103
103
unwrap ( ) : void ;
Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ class ParentBlot extends ShadowBlot implements Parent {
243
243
} , 0 ) ;
244
244
}
245
245
246
- public moveChildren ( targetParent : Parent , refNode ?: Blot ) : void {
246
+ public moveChildren ( targetParent : Parent , refNode ?: Blot | null ) : void {
247
247
this . children . forEach ( ( child ) => {
248
248
targetParent . insertBefore ( child , refNode ) ;
249
249
} ) ;
You can’t perform that action at this time.
0 commit comments