hilla icon indicating copy to clipboard operation
hilla copied to clipboard

Form-Binder: Unreliable validation of nullable properties

Open Feuerwerk opened this issue 3 years ago • 0 comments

Description of the bug

Having a form with a custom validator, the validator is only called the first time you enter a value for a nullable property

Minimal reproducible example

my-hilla-app.zip

This example will show you the bug. It will only occur when you call this.binder.read with the optional property missing.

Expected behavior

Entered value is validated every time you change that value

Actual behavior

The value is only validated the first time you enter a value to the field

Versions:

- Vaadin / Hilla version: 1.2.1

Feuerwerk avatar Sep 23 '22 16:09 Feuerwerk