onValueChanged called on default values

Is there any reason why onValueCahnged event is called when we have default value set for Combobox, Textfield?
Or onCheckedChanged on checkbox?

In General, whenever the inputs have default value passed to it, they trigger valuechanged event.

This really throws me off when trying to add logic to set values on change.

Is there any other way or any other handler i should be using for such scenarios?

Every time a value is set, events are called.

It is not clear to me how this interferes with the logic of your application. Could you elaborate with an example?

If that’s about validation, default values are not necessarily valid, like 0 for an number field expected to have a value between 1 and 10.

You can use the change event if you only want to react when the user changes the value, just like with native HTML controls.

I am trying to have Grid with columns having render method, which renders Combobox, Checkbox or Textfields. Value is set from item and i have onValueChange to set the value of the item.
Also have rowsDraggable.

When I drag row, it also updates the data between rows which is shown in the render components, so in onValueChange I am using value is not same as current item’s value

I think i also have to set key for these elements then somehow it is not changing the values.

I remember trying onChange, but that is not having as much information as vaadins onValueChange events? thats why stick with onValueChange.

But i will give this also try again. Thank you!