Skip to content

Commit 701b7c9

Browse files
committed
fix #937 Select loses focus after selection
1 parent 65bad21 commit 701b7c9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

domino-ui/src/main/java/org/dominokit/domino/ui/forms/suggest/MultiSelect.java

+1
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ protected void onOptionSelected(SelectOption<V> option, boolean silent) {
154154
updateTextValue();
155155
fieldInput.appendChild(option);
156156
selectedOptions.add(option);
157+
getInputElement().element().focus();
157158
}
158159

159160
/**

domino-ui/src/main/java/org/dominokit/domino/ui/forms/suggest/Select.java

+1
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ public Select<V> withOption(SelectOption<V> option, boolean silent) {
118118
}
119119
}
120120
autoValidate();
121+
getInputElement().element().focus();
121122
return this;
122123
}
123124

0 commit comments

Comments
 (0)