From 79b4fc2b0ba13e4fa478479c183accf6ef2f2b34 Mon Sep 17 00:00:00 2001 From: Ivaylo Plashkov Date: Mon, 18 May 2026 11:34:32 +0300 Subject: [PATCH] Revert "fix(ui5-combobox): show focus outline on list item mousedown (#13449)" This reverts commit e3ea50133f7748f380764bf6a7997aa7370f4db5. --- packages/main/cypress/specs/ComboBox.cy.tsx | 15 --------------- packages/main/src/ComboBox.ts | 8 -------- 2 files changed, 23 deletions(-) diff --git a/packages/main/cypress/specs/ComboBox.cy.tsx b/packages/main/cypress/specs/ComboBox.cy.tsx index 0cd2803c939b..3f088601e625 100644 --- a/packages/main/cypress/specs/ComboBox.cy.tsx +++ b/packages/main/cypress/specs/ComboBox.cy.tsx @@ -187,21 +187,6 @@ describe("General Interaction", () => { cy.get("[ui5-combobox]").should("have.prop", "focused", true); }); - it("shows focus outline on list item mousedown", () => { - cy.mount( - - - - - ); - - cy.get("[ui5-combobox]").shadow().find(".inputIcon").realClick(); - cy.get("[ui5-combobox]").shadow().find("[ui5-responsive-popover]").should("have.attr", "open"); - - cy.get("[ui5-cb-item]").first().shadow().find("li").realMouseDown(); - cy.get("[ui5-cb-item]").first().should("have.prop", "focused", true); - }); - it("tests Combo with two-column layout", () => { cy.mount( diff --git a/packages/main/src/ComboBox.ts b/packages/main/src/ComboBox.ts index c7bc268c62c0..590accc326fc 100644 --- a/packages/main/src/ComboBox.ts +++ b/packages/main/src/ComboBox.ts @@ -1385,14 +1385,6 @@ class ComboBox extends UI5Element implements IFormInputElement { _itemMousedown(e: MouseEvent) { e.preventDefault(); - - const target = e.target as HTMLElement; - const listItem = target.closest("[ui5-cb-item], [ui5-cb-item-group]"); - - if (listItem) { - this._clearFocus(); - listItem.focused = true; - } } _selectItem(e: CustomEvent) {