src/utils/input-helper.js
/**
 * Moves a cursor to the end of an input
 * @param {HTMLInputElement} el
 */
Moves a cursor to the end of an input
@param {HTMLInputElement} el
Moves a cursor to the end of an input @param { HTMLInputElement } el
function moveCursorToEnd(el) {
  if (typeof el.selectionStart === 'number') {
    el.selectionStart = el.selectionEnd = el.value.length;
  } else if (typeof el.createTextRange !== 'undefined') {
    el.focus();
    const range = el.createTextRange();
    range.collapse(false);
    range.select();
  }
}
function moveCursorToEnd ( el ) { if ( typeof el . selectionStart === 'number' ) { el . selectionStart = el . selectionEnd = el . value . length ; } else if ( typeof el . createTextRange !== 'undefined' ) { el . focus ( ) ; const range = el . createTextRange ( ) ; range . collapse ( false ) ; range . select ( ) ; } }
Moves a cursor to the end of an input
 @param {HTMLInputElement} el
Moves a cursor to the end of an input @param { HTMLInputElement } el
// eslint-disable-next-line