Commit 66ed155a authored by Harrison Healey's avatar Harrison Healey Committed by enahum
Browse files

Fixed autocomplete to work with TextareaAutosize (#4325)

parent 0741d3be
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment