This commit is contained in:
Saifeddine ALOUI 2023-08-22 01:09:43 +02:00
parent 4786cfc5a9
commit a740fe6252

View File

@ -137,7 +137,7 @@ export default {
mounted() {
const text_element = document.getElementById('text_element');
text_element.addEventListener('input', () => {
this.cursorPosition = text_element.selectionStart+1;
this.cursorPosition = text_element.selectionStart;
});
text_element.addEventListener('click', () => {
this.cursorPosition = text_element.selectionStart;