remove code that i cannot get to work

pull/1538/head
Mikael Finstad 3 years ago
parent 9d3ddb4207
commit c96fffda86

@ -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 (

Loading…
Cancel
Save