vaadin / hilla

Build better business applications, faster. No more juggling REST endpoints or deciphering GraphQL queries. Hilla seamlessly connects Spring Boot and React to accelerate application development.
https://hilla.dev
Apache License 2.0
898 stars 56 forks source link

Fusion: Data Binding: OffsetDateTime and vaadin-date-time-picker #234

Open Lars-jnk opened 3 years ago

Lars-jnk commented 3 years ago

Description of the bug

If you wanna bind a OffsetDateTime on a component, it dosn't show the value. If you enter a value you get a validation error.

Minimal reproducible example

<vaadin-date-time-picker ...="${field(this.binder.model.createdAt)}" label="date-time"></vaadin-date-time-picker>

Expected behavior

show value and keep the entered value.

Actual behavior

show an empty picker and, after enter a value, throw an exception on submit:

ValidationError: There are validation errors in the form.

If you enter nothing the old value is transmitted

Versions:

- Vaadin / Flow version: 20.0.3
haijian-vaadin commented 3 years ago

I think the reason is that we don't support the OffsetDateTime yet in Fusion.