Skip to content

Area keys: focus search stops when the page is destroyed - #1285

Merged
vmillet-dev merged 1 commit into
dev/0.18.0from
fix/area-keys-landing
Nov 3, 2026
Merged

vmillet-dev merged 1 commit into
dev/0.18.0from
fix/area-keys-landing

Conversation

@vmillet-dev

Copy link
Copy Markdown
Owner

AreaKeysDirective looks for where the keyboard lands after Ctrl+1/2/3 over up to 60 animation frames. A frame still pending once the page was destroyed called injector.get on a destroyed injector: NG0205: Injector has already been destroyed, an unhandled error that failed « Test front » on three runs of the v0.18.0 PRs (#1279, #1282, #1283), always after answers Ctrl+B from a field… in app.component.spec.ts.

The frame is now kept and cancelled on DestroyRef.onDestroy. New spec: after Ctrl+3, destroying the page cancels the pending frame.

Local: ng test --include src/app/app.component.spec.ts (14 tests), Prettier, ESLint.

🤖 Generated with Claude Code

A frame still pending reached a destroyed injector: NG0205, which failed Test front on three
runs of v0.18.0.
@vmillet-dev vmillet-dev added the bug Something isn't working label Nov 2, 2026
@vmillet-dev
vmillet-dev merged commit 10b3917 into dev/0.18.0 Nov 3, 2026
48 of 56 checks passed
@vmillet-dev
vmillet-dev deleted the fix/area-keys-landing branch November 3, 2026 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant