Skip to content

Commit

Permalink
fix #937 Select loses focus after selection
Browse files Browse the repository at this point in the history
  • Loading branch information
vegegoku committed Jul 14, 2024
1 parent 65bad21 commit 701b7c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ protected void onOptionSelected(SelectOption<V> option, boolean silent) {
updateTextValue();
fieldInput.appendChild(option);
selectedOptions.add(option);
getInputElement().element().focus();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ public Select<V> withOption(SelectOption<V> option, boolean silent) {
}
}
autoValidate();
getInputElement().element().focus();
return this;
}

Expand Down

0 comments on commit 701b7c9

Please sign in to comment.