diff --git a/src/components/OutSegTemplateEditor.jsx b/src/components/OutSegTemplateEditor.jsx index 3879558e..15c0ae81 100644 --- a/src/components/OutSegTemplateEditor.jsx +++ b/src/components/OutSegTemplateEditor.jsx @@ -94,11 +94,6 @@ const OutSegTemplateEditor = memo(({ outSegTemplate, setOutSegTemplate, generate const newValue = `${text.slice(0, startPos)}${`\${${variable}}${text.slice(endPos)}`}`; setText(newValue); - - // Move the cursor to after the inserted variable - const newPos = startPos + variable.length + 2; - input.selectionStart = newPos; - input.selectionEnd = newPos; }, [text]); return (