Changes since 25.0.0-beta2
New features
-
Add varargs-based scrollIntoView API
Commit · Pull requestAllows doing
component.scrollIntoView(ScrollIntoViewOption.Behavior.SMOOTH, ScrollIntoViewOption.Block.END, ScrollIntoViewOption.Inline.CENTER);without creating an intermediate options object. Consistent with thefocus(...)API -
Add preventScroll and focusVisible support to Focusable
Commit · Pull request · IssueAdd FocusOption... to focus so you can do e.g. focus(FocusOption.VISIBLE) or focus(FocusOption.NOT_VISIBLE, PreventScroll.ENABLED)
-
Add signal binding for attribute in Element
Commit · Pull request · IssueIntroduces bindAttribute(String attribute, Signal signal) method in Element to bind a Signal to attribute.
Fixes
-
The default for livereload in Spring Boot 4 RC1 is false
Commit · Pull request -
Update stylesheet when a referenced resource changes
Commit · Pull request · Issue -
Prevent AppShellRegistry validation failure for StyleSheet.Container
Commit · Pull request · IssueWhen AppShellRegistry validates offending annotation on other compoent classes it ignore the StyleSheet annotation. However, if a component has multiple StyleSheet annotations on it, the validation fails. This change also ignores StyleSheet.Container annotation during validation
-
Respect spring.devtools.livereload.enabled property
Commit · Pull request · IssueWhen developers set spring.devtools.livereload.enabled=false, the application should not attempt to establish a WebSocket connection to the Spring Boot livereload server. This commit fixes the issue by checking the enabled property at the source (SpringDevToolsPortHandler) and propagating the result through the entire chain: - SpringDevToolsPortHandler: Only assigns port if livereload enabled - IndexHtmlRequestHandler: Only includes liveReloadPort in config if set - vaadin-dev-tools.ts: Only creates WebSocket connection if port exists