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) {