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 (#24396)
  • Loading branch information
kseamon committed Feb 10, 2022
1 parent fb394c5 commit d8ff80a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 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,11 @@ 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 d8ff80a

Please sign in to comment.