We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent0abf63c commitf7af815Copy full SHA for f7af815
projects/angular-split/src/lib/split/split.component.ts
@@ -19,7 +19,20 @@ import {
19
}from'@angular/core'
20
import{takeUntilDestroyed}from'@angular/core/rxjs-interop'
21
importtype{SplitAreaComponent}from'../split-area/split-area.component'
22
-import{Subject,filter,fromEvent,map,pairwise,skipWhile,startWith,switchMap,take,takeUntil,tap}from'rxjs'
+import{
23
+Subject,
24
+filter,
25
+fromEvent,
26
+map,
27
+merge,
28
+pairwise,
29
+skipWhile,
30
+startWith,
31
+switchMap,
32
+take,
33
+takeUntil,
34
+tap,
35
+}from'rxjs'
36
import{
37
ClientPoint,
38
createClassesString,
@@ -197,7 +210,7 @@ export class SplitComponent {
197
210
),
198
211
199
212
take(1),
200
-takeUntil(fromMouseUpEvent(this.document,true)),
213
+takeUntil(merge(fromMouseUpEvent(this.document,true),fromEvent(this.document,'blur'))),
201
214
tap(()=>{
202
215
this.ngZone.run(()=>{
203
216
this.dragStart.emit(this.createDragInteractionEvent(mouseDownContext.gutterIndex))