fix caret position after autocomplete (#7118)

Этот коммит содержится в:
Chris
2017-08-03 19:40:53 -05:00
коммит произвёл Joram Wilander
родитель df1ff4ec97
Коммит e06686dbf4

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

@@ -275,7 +275,7 @@ export default class SuggestionBox extends React.Component {
// set the caret position after the next rendering
window.requestAnimationFrame(() => {
if (textbox.value === newValue) {
Utils.setCaretPosition(textbox, newValue.length);
Utils.setCaretPosition(textbox, prefix.length + term.length + 1);
}
});