Skip to content

fix: after update (#DS-5079)#1622

Draft
lskramarov wants to merge 3 commits into
mainfrom
fix/after-update
Draft

fix: after update (#DS-5079)#1622
lskramarov wants to merge 3 commits into
mainfrom
fix/after-update

Conversation

@lskramarov
Copy link
Copy Markdown
Contributor

No description provided.

@lskramarov lskramarov self-assigned this Jun 4, 2026
@lskramarov lskramarov requested a review from artembelik as a code owner June 4, 2026 10:42
@lskramarov lskramarov added the bug Something isn't working label Jun 4, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 4, 2026

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

https://koobiq-next--prs-1622-815op42q.web.app

(expires Tue, 09 Jun 2026 18:46:15 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: c9e37e518febda70d0317d07e8ceb35ac43c534c

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 4, 2026

🚨 E2E tests failed

Review the report for details.


💡 Comment /approve-snapshots to approve snapshot changes.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 hardens KbqSelect’s “hidden selected items” calculation logic to avoid runtime errors when expected trigger DOM elements aren’t present yet (regression observed after a framework update), and adds a unit test to prevent the crash from returning.

Changes:

  • Add null-guards in calculateHiddenItems when .kbq-select__match-hidden-text / .kbq-select__match-list aren’t available yet.
  • Make getTotalVisibleItems() tolerate a missing .kbq-select__match-hidden-text element before calling Renderer2.setStyle.
  • Add a regression unit test ensuring calculateHiddenItems() doesn’t throw when the hidden-text element is missing.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/components/select/select.component.ts Adds defensive null checks in hidden-items calculation paths to prevent DOM access / Renderer2.setStyle crashes.
packages/components/select/select.component.spec.ts Adds a regression test covering the “hidden-text not yet in DOM” scenario.

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

Replace the legacy .eslintrc.js/.eslintignore with a flat eslint.config.js
and bump eslint to v9. Swap the unmaintained eslint-plugin-rxjs for the
maintained eslint-plugin-rxjs-x fork (rxjs-x/* namespace) and adopt the
typescript-eslint and angular-eslint umbrella packages.

Preserve the previous lint behavior: disable the rxjs-x rules new to its
recommended set (prefer-root-operators, prefer-observer), ignore .yarn
(flat config lints .cjs by default), and restore no-unused-vars
caughtErrors: 'none'.
Drop the align-self: flex-start override that lifted the toggle and checkbox off center.

Also center the badge in the tree-action-button example.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 4, 2026

🚨 E2E tests failed

Review the report for details.


💡 Comment /approve-snapshots to approve snapshot changes.

@lskramarov lskramarov marked this pull request as draft June 5, 2026 06:31
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.

2 participants