mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-08 10:20:41 +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