mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-12 20:23:52 +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());
|
infoIcon.addClickListener(event -> onInfoIconClick());
|
||||||
|
|
||||||
inputField = new TextField();
|
inputField = new TextField();
|
||||||
|
inputField.getElement().setAttribute("autofocus", "");
|
||||||
inputField.setPlaceholder(getTranslation("root.inputFieldPlaceholder"));
|
inputField.setPlaceholder(getTranslation("root.inputFieldPlaceholder"));
|
||||||
inputField.setId(INPUT_FIELD_ID);
|
inputField.setId(INPUT_FIELD_ID);
|
||||||
inputField.setClearButtonVisible(true);
|
inputField.setClearButtonVisible(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user