Skip to content

Vaadin Flow Components V24.10.2

Choose a tag to compare

@vaadin-bot vaadin-bot released this 20 Apr 11:28
· 39 commits to 24.10 since this release
55901cc

Vaadin Flow Components 24.10.2

This is a release of the Java integration for Vaadin Components to be used from the Java server side with Vaadin Flow.

Changes in Flow Components from 24.10.1

Changes in vaadin-map-flow

  • Fixes:
    • ⧉ Register Map resources on the Map element (CP: 24.10). PR:9135

      Cherry-pick of #9134

Changes in vaadin-spreadsheet-flow

  • Fixes:
    • ⧉ Prevent infinite focus loop and stale selection in custom editors (CP: 24.10). PR:9125

      This PR cherry-picks changes from the original PR #9113 to branch 24.10. --- > ## Summary > - Fix infinite cellSelected feedback loop triggered by programmatic focus changes (e.g. inputElement.select()) in onCustomEditorDisplayed callbacks > - Prevent delayed server responses from hijacking the cell selection when the user has already navigated away, including via keyboard navigation through cells with custom editors > - Add server-side reentrancy guard to prevent recursive onCustomEditorDisplayed calls when callback code calls refreshCells() > > ## Root cause > CustomEditorEventListener.ONFOCUS unconditionally sent cellSelected to the server and updated the client-side selection on every focus event — including programmatic focus from inputElement.select() called in onCustomEditorDisplayed. When the callback had non-trivial processing time, the delayed response would steal focus and selection from whatever cell the user had since navigated to, and could trigger an infinite client→server→client loop. > > ## Approach > Client-side (CustomEditorEventListener): track mousedown/touchstart events to distinguish user-initiated focus from programmatic focus. Only update the selection and send cellSelected for user-initiated focus. For programmatic focus on a cell the user has already left, return focus to the sheet. Keyboard navigation is unaffected because SelectionHandler already handles selection updates and cellSelected independently. > > Server-side (Spreadsheet): reentrancy guard (insideCustomEditorCallback) on loadCustomEditorOnSelectedCell() to prevent recursive onCustomEditorDisplayed calls when user code in the callback calls refreshCells(). > > Fixes #9036 > > ## Test plan > - [ ] CustomEditorIT#comboBoxEditorWithSelect_clickCell_callbackFiredOnce — verifies single click triggers exactly 1 callback (no loop) > - [ ] CustomEditorIT#comboBoxEditorWithSelect_switchBetweenCells_noInfiniteLoop — rapidly clicks through editor cells to a non-editor cell, verifies selection stays on the final cell and callback count is bounded > - [ ] All 26 existing CustomEditorIT tests pass (keyboard navigation, Tab, Shift+Tab, F2, Enter, ESC, shared editors, frozen panes, always-visible mode) > > 🤖 Generated with Claude Code

Compatibility

  • This release use Web Components listed in Vaadin Platform 24.10.2
  • Tested with Vaadin Flow version 24.10.2