Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 1 month ago
Vaadin 8 ComboBox
Version: 8.0.0.beta1
1. If you click out of a ComboBox (current value is not on the first page of the items) the new value in the ComboBox is empty. The internal value remains.
2. The same happens if you type in a 'new' value. Furthermore the new value only is applied to the ComboBox if you press enter, not if you click out of the ComboBox.
Use following code to reproduce:
final ComboBox<String> comboBox = new ComboBox<>();
comboBox.setItems(Arrays.asList("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k"));
comboBox.setValue("k"); // 'k' on 2. page of items
comboBox.setNewItemHandler(item -> comboBox.setValue(item));
Last updated on
You cannot reply to this thread.