diff --git a/webapp/components/suggestion/suggestion_box.jsx b/webapp/components/suggestion/suggestion_box.jsx index 008fc2ffba..11fda2643e 100644 --- a/webapp/components/suggestion/suggestion_box.jsx +++ b/webapp/components/suggestion/suggestion_box.jsx @@ -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); } });