github vaadin/flow 23.2.8
Vaadin Flow 23.2.8

latest releases: 24.6.0.alpha4, 24.5.4, 24.6.0.alpha3...
23 months ago

Changes since 23.2.7

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.
    This fixes a problem when the application needs UI updates initially in the navigation lifecycle handlers, but doesn't need those updates after page refresh and when PreserveOnRefresh is used.

Fixes

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

    Component locale should return a locale even when UI and i18nProvider are not available.

  • 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.

  • No stream serialization without uis (#15287)
    Commit · Pull request · Issue

    Do not serialize the streamResourceRegistry if UIs are not serialized.

Don't miss a new flow release

NewReleases is sending notifications on new releases.