diff options
Diffstat (limited to 'server/src/main/java/com/vaadin/ui/ComboBox.java')
-rw-r--r-- | server/src/main/java/com/vaadin/ui/ComboBox.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/src/main/java/com/vaadin/ui/ComboBox.java b/server/src/main/java/com/vaadin/ui/ComboBox.java index 62e7ef7751..73d9ad84cf 100644 --- a/server/src/main/java/com/vaadin/ui/ComboBox.java +++ b/server/src/main/java/com/vaadin/ui/ComboBox.java @@ -25,6 +25,7 @@ import java.util.Objects; import java.util.Set; import java.util.stream.Stream; +import com.vaadin.data.ValueProvider; import org.jsoup.nodes.Element; import com.vaadin.data.HasFilterableDataProvider; @@ -188,8 +189,8 @@ public class ComboBox<T> extends AbstractSingleSelect<T> public ComboBox() { super(new DataCommunicator<T>() { @Override - protected DataKeyMapper<T> createKeyMapper() { - return new KeyMapper<T>() { + protected DataKeyMapper<T> createKeyMapper(ValueProvider<T,Object> identifierGetter) { + return new KeyMapper<T>(identifierGetter) { @Override public void remove(T removeobj) { // never remove keys from ComboBox to support selection |