From d298e99d9b37aeedf8e40770aeed62c4c8ff1049 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Wed, 28 Sep 2016 18:35:13 -0400 Subject: Made SuggestionBox take back keyboard focus after the user clicks on a suggestion (#4112) --- webapp/components/suggestion/suggestion_box.jsx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'webapp') diff --git a/webapp/components/suggestion/suggestion_box.jsx b/webapp/components/suggestion/suggestion_box.jsx index d74038ead..02911c30f 100644 --- a/webapp/components/suggestion/suggestion_box.jsx +++ b/webapp/components/suggestion/suggestion_box.jsx @@ -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); -- cgit v1.2.3-1-g7c22