mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Made SuggestionBox take back keyboard focus after the user clicks on a suggestion (#4112)
This commit is contained in:
@@ -113,6 +113,8 @@ export default class SuggestionBox extends React.Component {
|
||||
this.props.onInput(e);
|
||||
}
|
||||
|
||||
textbox.focus();
|
||||
|
||||
// set the caret position after the next rendering
|
||||
window.requestAnimationFrame(() => {
|
||||
Utils.setCaretPosition(textbox, prefix.length + term.length + 1);
|
||||
|
||||
Reference in New Issue
Block a user