diff --git a/flow-server/src/main/java/com/vaadin/flow/server/BootstrapHandler.java b/flow-server/src/main/java/com/vaadin/flow/server/BootstrapHandler.java index fde0cdfb0a6..350a522a1f7 100644 --- a/flow-server/src/main/java/com/vaadin/flow/server/BootstrapHandler.java +++ b/flow-server/src/main/java/com/vaadin/flow/server/BootstrapHandler.java @@ -1541,11 +1541,10 @@ protected static void showWebpackErrors(VaadinService service, Element errorElement = document.createElement("div"); errorElement.setBaseUri(""); errorElement.attr("class", "v-system-error"); - errorElement.attr("onclick", - "this.parentElement.removeChild(this)"); errorElement .html("
" + errorMsg + ""); document.body().appendChild(errorElement); } diff --git a/flow-server/src/test/java/com/vaadin/flow/server/communication/IndexHtmlRequestHandlerTest.java b/flow-server/src/test/java/com/vaadin/flow/server/communication/IndexHtmlRequestHandlerTest.java index d6730acc74e..33688ba2ac3 100644 --- a/flow-server/src/test/java/com/vaadin/flow/server/communication/IndexHtmlRequestHandlerTest.java +++ b/flow-server/src/test/java/com/vaadin/flow/server/communication/IndexHtmlRequestHandlerTest.java @@ -544,8 +544,7 @@ public boolean isDevModeAlreadyStarted(VaadinContext context) { String indexHtml = responseOutput .toString(StandardCharsets.UTF_8.name()); Assert.assertTrue("Should have a system error dialog", - indexHtml.contains( - "