Skip to content

fix(tree-select): add missing takeUntil to prevent subscription leaks (#DS-5143)#1688

Merged
lskramarov merged 1 commit into
mainfrom
fix/DS-5143
Jul 2, 2026
Merged

fix(tree-select): add missing takeUntil to prevent subscription leaks (#DS-5143)#1688
lskramarov merged 1 commit into
mainfrom
fix/DS-5143

Conversation

@lskramarov

Copy link
Copy Markdown
Contributor

No description provided.

@lskramarov lskramarov requested review from NikGurev and artembelik July 2, 2026 13:18
@lskramarov lskramarov self-assigned this Jul 2, 2026
@lskramarov lskramarov added the bug Something isn't working label Jul 2, 2026
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 7131e7e):

https://koobiq-next--prs-1688-jgon8rt5.web.app

(expires Tue, 07 Jul 2026 13:23:04 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: c9e37e518febda70d0317d07e8ceb35ac43c534c

@artembelik artembelik requested a review from Copilot July 2, 2026 14:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates KbqTreeSelect to ensure RxJS subscriptions created during component lifecycle are properly torn down, preventing potential memory leaks and post-destroy side effects.

Changes:

  • Added takeUntilDestroyed(this.destroyRef) to selectionModel.changed subscriptions (including the delayed overlay positioning update).
  • Added takeUntilDestroyed(this.destroyRef) to the search valueChanges subscription.
  • Added defensive null checks around querySelector results used in hidden-items calculations to avoid runtime errors when expected DOM nodes are absent.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@lskramarov lskramarov merged commit f14a571 into main Jul 2, 2026
10 checks passed
@lskramarov lskramarov deleted the fix/DS-5143 branch July 2, 2026 15:38
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.

4 participants