summaryrefslogtreecommitdiffstats
path: root/webapp/components/suggestion
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-10-25 10:33:47 -0400
committerenahum <nahumhbl@gmail.com>2016-10-25 11:33:47 -0300
commit66ed155a58b6f0f365db26fa9e4e605d3d4a61a2 (patch)
treec8a28eb8356f39c7faa5b35589fc1252d1b6a4bf /webapp/components/suggestion
parent0741d3be0a927ea659591ef811795018fbac85d0 (diff)
downloadchat-66ed155a58b6f0f365db26fa9e4e605d3d4a61a2.tar.gz
chat-66ed155a58b6f0f365db26fa9e4e605d3d4a61a2.tar.bz2
chat-66ed155a58b6f0f365db26fa9e4e605d3d4a61a2.zip
Fixed autocomplete to work with TextareaAutosize (#4325)
Diffstat (limited to 'webapp/components/suggestion')
-rw-r--r--webapp/components/suggestion/suggestion_box.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/components/suggestion/suggestion_box.jsx b/webapp/components/suggestion/suggestion_box.jsx
index eb13686bb..62148c454 100644
--- a/webapp/components/suggestion/suggestion_box.jsx
+++ b/webapp/components/suggestion/suggestion_box.jsx
@@ -83,9 +83,9 @@ export default class SuggestionBox extends React.Component {
}
handleCompleteWord(term, matchedPretext) {
- const textbox = this.refs.textbox;
+ const textbox = ReactDOM.findDOMNode(this.refs.textbox);
const caret = Utils.getCaretPosition(textbox);
- const text = textbox.value;
+ const text = this.props.value;
const pretext = text.substring(0, caret);
let prefix;