summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webapp/components/suggestion/suggestion_box.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/suggestion/suggestion_box.jsx b/webapp/components/suggestion/suggestion_box.jsx
index 008fc2ffb..11fda2643 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);
}
});