FlowingCode/ChipFieldAddon

removeSelectedItem doesn't work as expected

Closed this issue · 1 comments

Expected behavior:

  • There are two items: Mars and Venus
  • Calling removeSelectedItem actually removes the item Venus.
add(new Button("No Venus", ev -> {
    chf.removeSelectedItem(venus);
}));

chipfieldvenus

Observed behavior:

  • The Venus is not removed after calling removeSelectedItem
  • After removing Mars, a new chip appears with label "1"
  • When retrieving the value it correctly shows Mars.

This is likely related to #25