Fixed autocomplete to work with TextareaAutosize (#4325)

Этот коммит содержится в:
Harrison Healey
2016-10-25 10:33:47 -04:00
коммит произвёл enahum
родитель 0741d3be0a
Коммит 66ed155a58

Просмотреть файл

@@ -83,9 +83,9 @@ export default class SuggestionBox extends React.Component {
} }
handleCompleteWord(term, matchedPretext) { handleCompleteWord(term, matchedPretext) {
const textbox = this.refs.textbox; const textbox = ReactDOM.findDOMNode(this.refs.textbox);
const caret = Utils.getCaretPosition(textbox); const caret = Utils.getCaretPosition(textbox);
const text = textbox.value; const text = this.props.value;
const pretext = text.substring(0, caret); const pretext = text.substring(0, caret);
let prefix; let prefix;