FlowingCode/ChipFieldAddon

setValue is ignored

Closed this issue · 1 comments

From thread in Vaadin Directory, Matteo De Franceschi wrote:

I'm not able to use the "setValue" method. It seems it is ignored.

The component doesn't implement setPresentationValue and doesn't call setModelValue thus the "expected" (and incorrect) behavior is that server-side and client-side representations diverge.

@Override
protected void setPresentationValue(List<T> newPresentationValue) {
}

See:
https://github.com/vaadin/flow/blob/c009afc5c24d8a3d6abc14f6f5cd3faea80c1932/flow-server/src/main/java/com/vaadin/flow/component/AbstractField.java#L41-L47