Skip to content

Commit 7e5727d

Browse files
committed
When focusing upon activeElement, jump to end of input value
1 parent 2da0763 commit 7e5727d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

view/base/templates/script/ajax-queue.phtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ if ($interval < 10) {
211211
const activeElement = document.getElementById(this.activeElementId);
212212
if (activeElement) {
213213
activeElement.focus();
214+
activeElement.selectionStart = activeElement.selectionEnd = activeElement.value.length;
214215
}
215216
}
216217
}

0 commit comments

Comments
 (0)