insin / react-maskedinput

Masked <input/> React component
http://insin.github.io/react-maskedinput/
MIT License
731 stars 197 forks source link

Move cursor to the first valuable place #92

Open sidoruk-sv opened 7 years ago

sidoruk-sv commented 7 years ago

When I have a mask, that begins with some masked symbol ()[]{} etc. It will be good to move cursor to the place where first number will appear, not before (: http://take.ms/SAwpD

jerrygreen commented 6 years ago

totally agree! this UX is so bad it's weird to tap backspace tens of times to remove NOTHING, like... I'll try to describe, here's my input data and some comments:

+1 (123) 1

whops, wrong last digit in parentheses, need to delete... BACKSPACE!

+1 (123)

yea, nice, go deeper! BACKSPACE!

+1 (123)

wait wuut?! did I tap? not sure... BACKSPACE!

+1 (123)

does it even work? I think it's bugged, shit... BACKSPACE!

+1 (12 )

HOLY MOLY, it's working, thank god... shitty website

So why these blank/ethereal characters counts as characters for backspace (which are just part of mask, not the data)?

gotrecillo commented 6 years ago

Please, really please.