diff --git a/ts/components/conversation/composition/CompositionBox.tsx b/ts/components/conversation/composition/CompositionBox.tsx index 04ea3135e..fd2f5a40b 100644 --- a/ts/components/conversation/composition/CompositionBox.tsx +++ b/ts/components/conversation/composition/CompositionBox.tsx @@ -986,15 +986,15 @@ class CompositionBoxInner extends React.Component { // update our selection because updating text programmatically // will put the selection at the end of the textarea - const selectionStart = currentSelectionStart + Number(colons.length); - messageBox.selectionStart = selectionStart; - messageBox.selectionEnd = selectionStart; - - // Sometimes, we have to repeat the set of the selection position with a timeout to be effective - setTimeout(() => { - messageBox.selectionStart = selectionStart; - messageBox.selectionEnd = selectionStart; - }, 20); + // const selectionStart = currentSelectionStart + Number(1); + // messageBox.selectionStart = selectionStart; + // messageBox.selectionEnd = selectionStart; + + // // Sometimes, we have to repeat the set of the selection position with a timeout to be effective + // setTimeout(() => { + // messageBox.selectionStart = selectionStart; + // messageBox.selectionEnd = selectionStart; + // }, 20); } private focusCompositionBox() {