2.0.2 • Published 8 years ago
focus-at-end v2.0.2
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'))