pull/1527/head
mertsincan 2021-09-07 17:28:08 +03:00
parent 3ab8ce06f7
commit a7c3110a4e
1 changed files with 4 additions and 1 deletions

View File

@ -852,7 +852,10 @@ export default {
this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd); this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
} }
else if (inputValue === '-' && operation === 'insert') { else if (inputValue === '-' && operation === 'insert') {
this.$refs.input.$el.setSelectionRange(selectionEnd + 1, selectionEnd + 1); this.$refs.input.$el.setSelectionRange(0, 0);
const index = this.initCursor();
const selectionEnd = index + insertedValueStr.length + 1;
this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
} }
else { else {
selectionEnd = selectionEnd + (newLength - currentLength); selectionEnd = selectionEnd + (newLength - currentLength);