@contentgrowth/llm-service 1.0.9 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -653,6 +653,7 @@ var ChatInputArea = (0, import_react5.forwardRef)(({
|
|
|
653
653
|
const before = currentVal.substring(0, selection.start);
|
|
654
654
|
const after = currentVal.substring(selection.end);
|
|
655
655
|
const newText = before + text + after;
|
|
656
|
+
pendingSelectionRef.current = { start: selection.start, end: selection.start + text.length };
|
|
656
657
|
triggerChange(newText);
|
|
657
658
|
lastSelectionRef.current = null;
|
|
658
659
|
} else {
|