diff --git a/vaadincreate-ui/src/main/java/org/vaadin/tatu/vaadincreate/crud/BookGrid.java b/vaadincreate-ui/src/main/java/org/vaadin/tatu/vaadincreate/crud/BookGrid.java index 075de63..4d24679 100644 --- a/vaadincreate-ui/src/main/java/org/vaadin/tatu/vaadincreate/crud/BookGrid.java +++ b/vaadincreate-ui/src/main/java/org/vaadin/tatu/vaadincreate/crud/BookGrid.java @@ -177,8 +177,11 @@ public void attach() { decimalFormat.setMaximumFractionDigits(2); decimalFormat.setMinimumFractionDigits(2); // Improve Grid browsing experience for screen reader users - JavaScript.eval( - "setTimeout(() => { const body = document.querySelector('tbody.v-grid-body');Array.from(body.getElementsByTagName('tr')).forEach(el => el.setAttribute('aria-live', 'polite'));}, 1000);"); + JavaScript.eval("setTimeout(() => {" + + "const body = document.querySelector('tbody.v-grid-body');" + + "Array.from(body.getElementsByTagName('tr')).forEach(el => {" + + "el.setAttribute('aria-live', 'polite');});" + + "}, 1000);"); } /**