summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-09-28 18:35:13 -0400
committerenahum <nahumhbl@gmail.com>2016-09-28 19:35:13 -0300
commitd298e99d9b37aeedf8e40770aeed62c4c8ff1049 (patch)
tree2c2d699dcd96c18a4002c5ff0ce392d18707418c
parentb666ef62542b43f7660762e4e89511dc19ca88f1 (diff)
downloadchat-d298e99d9b37aeedf8e40770aeed62c4c8ff1049.tar.gz
chat-d298e99d9b37aeedf8e40770aeed62c4c8ff1049.tar.bz2
chat-d298e99d9b37aeedf8e40770aeed62c4c8ff1049.zip
Made SuggestionBox take back keyboard focus after the user clicks on a suggestion (#4112)
-rw-r--r--webapp/components/suggestion/suggestion_box.jsx2
1 files changed, 2 insertions, 0 deletions
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);