mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-02-21 09:31:45 +00:00
fixed
This commit is contained in:
parent
4786cfc5a9
commit
a740fe6252
@ -137,7 +137,7 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
const text_element = document.getElementById('text_element');
|
const text_element = document.getElementById('text_element');
|
||||||
text_element.addEventListener('input', () => {
|
text_element.addEventListener('input', () => {
|
||||||
this.cursorPosition = text_element.selectionStart+1;
|
this.cursorPosition = text_element.selectionStart;
|
||||||
});
|
});
|
||||||
text_element.addEventListener('click', () => {
|
text_element.addEventListener('click', () => {
|
||||||
this.cursorPosition = text_element.selectionStart;
|
this.cursorPosition = text_element.selectionStart;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user