Fixed autocomplete to work with TextareaAutosize (#4325)
Этот коммит содержится в:
коммит произвёл
enahum
родитель
0741d3be0a
Коммит
66ed155a58
@@ -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;
|
||||
|
||||
Ссылка в новой задаче
Block a user