piano icon indicating copy to clipboard operation
piano copied to clipboard

can't read selectionStart property on input type ('email')

Open kucherenkovova opened this issue 8 years ago • 4 comments

image

kucherenkovova avatar May 15 '16 20:05 kucherenkovova

@kucherenkovova well this is "normal" input field type email does not support selection :) What do you need it for ?

gabrielstuff avatar May 15 '16 20:05 gabrielstuff

This response pretty much explains it all : http://stackoverflow.com/a/25569117/632926

gabrielstuff avatar May 15 '16 20:05 gabrielstuff

@gabrielstuff Yea, it works fine with normal input. But if we have input type email Piano.js doesn't check it on initialization, gives us no warnings and only when you press a button on virtual keyboard it causes an error.

kucherenkovova avatar May 15 '16 20:05 kucherenkovova

Well let's fix this and use the proposed solution above.

gabrielstuff avatar May 15 '16 20:05 gabrielstuff