mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-09 10:50:42 +00:00
Focus input automatically
This commit is contained in:
parent
a4224f4263
commit
5c49e03ba0
@ -59,6 +59,7 @@ public class InputBar extends HorizontalLayout implements LocaleChangeObserver {
|
||||
infoIcon.addClickListener(event -> onInfoIconClick());
|
||||
|
||||
inputField = new TextField();
|
||||
inputField.getElement().setAttribute("autofocus", "");
|
||||
inputField.setPlaceholder(getTranslation("root.inputFieldPlaceholder"));
|
||||
inputField.setId(INPUT_FIELD_ID);
|
||||
inputField.setClearButtonVisible(true);
|
||||
|
Loading…
Reference in New Issue
Block a user