Skip to content

Vaadin Flow 2.8.2

Compare
Choose a tag to compare
@vaadin-bot vaadin-bot released this 09 Dec 09:57
· 34 commits to 2.8 since this release
0c76eb9

Changes since 2.8.1

All changes

New features

  • Add refresh flag to navigation event (#15324)
    Commit · Pull request · Issue

    Add the isRefreshEvent to BeforeEnterEvent and AfterNavigationEvent to be make it possible to distinguish if the event is for a refresh of a preserve on refresh view.

Fixes

  • Component locale works without UI and i18n (#15344)
    Commit · Pull request · Issue

  • Do not remove expanded items from key mapper (#15314)
    Commit · Pull request · Issue

    With a TreeGrid, the expanded state of a root item gets lost when scrolled enough to request a new range. The cause for this is the updated key of the returned item. The expanded state for the items except the root items do not get lost. This PR makes sure that the key-value pair for a root item persists in the KeyMapper if the item is expanded. This change only affects hierarchical data. A test is added to ensure that the fix solves the issue. While this refactoring is less than ideal in terms of clean code, I think that the alternative requires a much larger refactoring. The logic in the regular and hierarchical data communicators are mostly both coupled and duplicated with private methods at this time. Therefore, this PR is as atomic as possible.

  • Remove unnecessary clear condition (#15282)
    Commit · Pull request · Issue

    For hierarchical data, even when the child components are filtered out, the clear method on ArrayUpdater.Update in HierarchicalCommunicationController is never called. This is caused by an if check, in which the start index of previousActive is compared to the newly calculated assumedSize. Since there might be items to clear, the newly calculated size should have no effect on whether we clear the items or not. This check is not present in the DataCommunicator counterpart within the method collectChangesToSend. This PR removes the aforementioned clear condition. Add test to ensure that the expanded children are cleared properly when filtered out.

  • Empty alt in costructor should add property (#15292)
    Commit · Pull request · Issue

    Giving the alternate text in the constructor should generate a property to the image.