Skip to content

Does not handle PreserveOnRefresh - wrong date range set after refresh #42

Open
@jusjoken

Description

@jusjoken

First off.. great component. I use it throughout my app and works impressive except for this issue.

I would like to be able to use @PreserveOnRefresh in my Vaadin application as well as this component, however when @PreserveOnRefresh is used on any view that uses this component and a refresh occurs, this component displays a completely different (very OLD) date range. One example after refresh was the date range was set to "1907-06-14 - 1937-06-13".

I created a test project that is a default Vaadin starter with your sample code added. My only other change was I set a default date range and I add @PreserveOnRefresh to the view.

See my project here... https://github.com/jusjoken/myappdatetest

Note in the screen grabs that the div display is still showing the correct date range even though the component is not.

Thanks for looking into this.
InitialViewonAppLaunch_defaultDate
ViewDisplayAfterRefresh
ViewDisplayAfterRefreshComponentOpen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions