From 66ed155a58b6f0f365db26fa9e4e605d3d4a61a2 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Tue, 25 Oct 2016 10:33:47 -0400 Subject: Fixed autocomplete to work with TextareaAutosize (#4325) --- webapp/components/suggestion/suggestion_box.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'webapp/components') 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; -- cgit v1.2.3-1-g7c22