javascript - Cannot type into textarea with fastclick on iOS 9 -


i've spent last few days search solution, should work (according documentation) not.

i'm using fastclick eliminate 300ms delay html5 application intended run on ipad. works great, except lost ability type text textarea. simple one-line fields work, not multi-line textarea.

when tap on text area, keyboard pops , can start typing. first letter typed appears in text area - that's all. subsequent letters not. if close keyboard , tap on text area again, can type 1 letter in.

i've tried suggested, including needsclick, needsfocus, etc. tried edit fastclick.js extend special code handling input elments cover textarea - nothing.

i'm @ point may have dump fastclick because of , manually myself, lost week on problem. yet, before go way, maybe can point me in right direction.

note, problem present on ipad , iphone ios 9.2 (specifically, 9.2.1 - latest version).

ok, reason turned out rather simple - , nothing fastclick. this answer solved me.

in css, had following:

body * {     -webkit-touch-callout: none;     -webkit-user-select: none;     user-select: none; }  body input {     -webkit-touch-callout: text;     -webkit-user-select: text;     user-select: text; } 

this done deal silly users "touchstart" on button start thinking want - , before "touchend", ios go copy/paste mode.

it explicitly disabled on inputs allow copy/paste within text. yet, forgot include textarea in second part. second piece looks this:

body input, body textarea {     -webkit-touch-callout: text;     -webkit-user-select: text;     user-select: text; } 

and works expected.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -