focus-at-end
v2.0.2
Published
Focuses an input and places the cursor at the end of the value.
Downloads
4
Readme
Most browsers place the cursor at the start of the input when you set focus to it. This little lib will put the cursor at the end of the input.
import focusAtEnd from 'focus-at-end'
focusAtEnd(document.querySelector('.my-input'))