Skip to content

Commit

Permalink
fix(cdk-experimental/column-resize): Fix bug in hover logic introduce…
Browse files Browse the repository at this point in the history
…d by IE cleanup
  • Loading branch information
kseamon committed Feb 10, 2022
1 parent fb394c5 commit ec09cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdk-experimental/column-resize/column-resize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export abstract class ColumnResize implements AfterViewInit, OnDestroy {
.subscribe(this.eventDispatcher.headerCellHovered);
fromEvent<MouseEvent>(element, 'mouseleave')
.pipe(
filter(event => !!(event.relatedTarget as Element)?.matches(RESIZE_OVERLAY_SELECTOR)),
filter(event => !!event.relatedTarget && !(event.relatedTarget as Element).matches(RESIZE_OVERLAY_SELECTOR)),
mapTo(null),
takeUntil(this.destroyed),
)
Expand Down

0 comments on commit ec09cd1

Please sign in to comment.