Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Cursor positioned incorrectly when all characters selected #205

Open
sferguson12 opened this issue Dec 29, 2016 · 0 comments
Open

Cursor positioned incorrectly when all characters selected #205

sferguson12 opened this issue Dec 29, 2016 · 0 comments

Comments

@sferguson12
Copy link

If all characters in a masked field are selected and the user presses cursor left, the cursor is bumped one extra position to the right of the leftmost masked character. For example:

(800)555-1212 => Select all => Cursor left => Cursor is positioned after the 8
123-45-6789 => Select all => Cursor left => Cursor is positioned after the 1

This appears to be related to how the isAddition property is getting set in eventHandler(). I'm using v1.8.7.

The issue is illustrated here: http://codepen.io/sferguson12/pen/LbwrOZ

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant