Skip to content

Commit

Permalink
fix(cdk): ActiveZone do not exit zone when scrollable container bec…
Browse files Browse the repository at this point in the history
…omes non-scrollable
  • Loading branch information
vladimirpotekhin committed Aug 21, 2024
1 parent 9224443 commit aaeec56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions projects/cdk/tokens/active-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
tuiCreateTokenFromFactory,
tuiGetActualTarget,
tuiGetDocumentOrShadowRoot,
tuiIsPresent,
} from '@taiga-ui/cdk/utils';
import {merge, Observable, of, timer} from 'rxjs';
import {
Expand Down Expand Up @@ -78,6 +79,7 @@ export const TUI_ACTIVE_ELEMENT = tuiCreateTokenFromFactory<
isValidFocusout(tuiGetActualTarget(event), removedElement),
),
map(([{relatedTarget}]) => relatedTarget),
filter(tuiIsPresent),
),
blur$.pipe(
map(() => doc.activeElement),
Expand Down

0 comments on commit aaeec56

Please sign in to comment.