Skip to content

Conversation

@valadzhov
Copy link
Contributor

Closes #16664

Only a programmatically closing combo should be focused. Initially it was like that but this PR forces this.comboInput.focus(); in both cases - when it's closed programmatically and due to user interaction:
#12170

Copy link
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 pull request fixes a critical performance issue (issue #16664) where repeatedly clicking between multiple igx-simple-combo components caused CPU usage to increase and eventually freeze the browser. The root cause was a focus loop introduced in PR #12170, where the combo input was always refocused when the dropdown closed, even when the close was triggered by user interaction (like clicking on another combo).

Changes:

  • Modified the dropdown.closing event handler to only call this.comboInput.focus() when the combo is closed programmatically (when !args.event), preventing focus loops when users click between multiple combos
  • Added an explanatory comment documenting why focus is only applied for programmatic closes

@Hristo313 Hristo313 self-requested a review January 28, 2026 10:40
@Hristo313 Hristo313 added 💥 status: in-test PRs currently being tested and removed ❌ status: awaiting-test PRs awaiting manual verification labels Jan 28, 2026
@Hristo313 Hristo313 marked this pull request as ready for review January 28, 2026 10:42
@Hristo313 Hristo313 added ✅ status: verified Applies to PRs that have passed manual verification and removed 💥 status: in-test PRs currently being tested labels Jan 28, 2026
Hristo313
Hristo313 previously approved these changes Jan 28, 2026
@gedinakova gedinakova requested a review from Copilot January 28, 2026 11:47
Copy link
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

…-combo.component.spec.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@gedinakova gedinakova requested a review from Copilot January 28, 2026 12:36
Copy link
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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

angular simple-combo ✅ status: verified Applies to PRs that have passed manual verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

igx-simple-combo: Repeated Switching Between Two Combos Causes Severe Performance Issues

3 participants