Closed ngonzalezpazFC closed 3 years ago
@ngonzalezpazFC Can you test again with the latest changes in master?
The lastest changes solved this issue.
Note: this was fixed by #35 and/or #36
Manually deleting an item added with setValue(), as the following code shows, was not detected before by the value change event, but now it does:
chipfield.addValueChangeListener(e -> {
Notification n = new Notification("Value changed");
n.open();
});
chipfield.setValue(Arrays.asList(new Planet("Test")));
Also, deleting a a chip added manually (chip not provided by the DataProvider assigned to the chipfield), is now triggering the value change event.
As far as I tested, the problem occurs only while deleting elements. The valueChangeListener does not catch the event in these cases, neither having a DataProvider nor using setAvailableItems method: