diff --git a/packages/base/src/UI5Element.ts b/packages/base/src/UI5Element.ts index 80f13fd01c4f..e1aea45f6642 100644 --- a/packages/base/src/UI5Element.ts +++ b/packages/base/src/UI5Element.ts @@ -328,14 +328,14 @@ abstract class UI5Element extends HTMLElement { await this._processChildren(); } - if (!this._inDOM) { // Component removed from DOM while _processChildren was running - return; - } - if (!ctor.asyncFinished) { await ctor.definePromise; } + if (!this._inDOM) { // Component removed from DOM while _processChildren was running + return; + } + renderImmediately(this); this._domRefReadyPromise._deferredResolve!(); this._fullyConnected = true; diff --git a/packages/main/cypress/specs/Input.cy.tsx b/packages/main/cypress/specs/Input.cy.tsx index 6b71a5c136eb..aa2a40605489 100644 --- a/packages/main/cypress/specs/Input.cy.tsx +++ b/packages/main/cypress/specs/Input.cy.tsx @@ -920,8 +920,8 @@ describe("Change event behavior when selecting the same suggestion item", () => }); it("should not close the dialog when item is selected", () => { - cy.mount( - + cy.mount( + @@ -934,10 +934,6 @@ describe("Change event behavior when selecting the same suggestion item", () => cy.get("@dialog") .ui5DialogOpened(); - cy.get("[ui5-input]") - .as("input") - .realClick(); - cy.get("@input") .should("be.focused");