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() { private void onExampleButtonClick() {
Consumer<String> setValue = value -> { Dialog exampleDialog = new ExampleDialog(this::inferTerm);
inputField.setValue(value);
inputField.focus();
};
Dialog exampleDialog = new ExampleDialog(setValue);
exampleDialog.open(); exampleDialog.open();
} }