examples load instantly when clicked

This commit is contained in:
ucrhh 2021-03-04 11:28:51 +01:00
parent cde13db5b1
commit 5f35f57151

View File

@ -123,11 +123,7 @@ public class InputBar extends HorizontalLayout implements LocaleChangeObserver {
}
private void onExampleButtonClick() {
Consumer<String> setValue = value -> {
inputField.setValue(value);
inputField.focus();
};
Dialog exampleDialog = new ExampleDialog(setValue);
Dialog exampleDialog = new ExampleDialog(this::inferTerm);
exampleDialog.open();
}