Skip to content

Focuses an input and places the cursor at the end of the value.

Notifications You must be signed in to change notification settings

gitaarik/focus-at-end

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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'))

About

Focuses an input and places the cursor at the end of the value.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published