Success! Looks like we've fixed this one. According to our records the fix was applied for
a recent build.
ST 2.2.1 - Cannot move cursor in TextField/TextAreaField in iOS
Sencha Touch version tested:
Browser versions tested against:
- Sencha Touch 2.2.0 (does not have the issue described here)
- Sencha Touch 2.2.1
Steps to reproduce the problem:
- When entering the content of a TextField or TextAreaField the contents cannot be changed as the positition of the cursor cannot be changed.
The result that was expected:
- Add a TextField or TextAreaField to your application
- Use an iPhone/iPad to open your application
- Enter some text
- Try to change the entered text in any other way than using backspace
The result that occurs instead:
- The cursor could be moved by tapping or holding the input area
- Cursor could not be moved, have to erase all the text up until the place you want to edit.
items : [
xtype : 'textareafield',
value : 'blah blah blah'
Debugging already done:
Last edited by mitchellsimoens; 10 Jun 2013 at 6:15 AM.
Reason: Explicitily mentioning iPhone/iPad, iOS version
Thanks for the report! I have opened a bug in our bug tracker.
As we don't want to downgrade to 2.2.0 I've been looking for a workaround. This seems to work for me:
Last edited by mvdbergh; 25 Jul 2013 at 11:00 AM.
Reason: Updated workaround
I am also affected by this issue...
Thanks for your suggested fix mvdbergh. Unfortunately it doesn't seem to work for me but I am a beginner and maybe have put the code in the wrong place? Where should I put the code you posted, could you please provide some further instructions? Thank you
Ext.event.publisher.TouchGesture.prototype.isNotPreventable = /(?:)/;
Although I've just seen on top of the post that it's been fixed in a recent build, so I will try and see if I can download that build now.
After some testing we found some issues with the previous workaround I posted.
This is an updated one:
I've put it in the "launch" function of my "Ext.application" file.
Chrome and Android Browser
Does this solution solves the strange behaviors in Chrome and Android Browser?
For example, en Android Browser you can move cursor in textfield. But when you selected some text, you cannot get the cursor again.
César Augusto Santos Ramírez
Ingeniero de Sistemas
Cannot move cursor in Android devices - Nexus4 and S4
Is there a solution for Android devices? I cannot move cursor in TextField/TextAreaField in Android - Nexus 4 and Samsung Galaxy S4.
See my last post... add that to your application launch.
I added that to launch function of my application. The fix is working in iOS but not in Android. Have you tested it in Android?