Once again I am here because I have exhausted my research on the subject. I have a very simple setup with very simple markup and yet a very strange behavior.
The behavior is eerily similar to (Firefox and Angular: Textarea placeholder doesn't appear until first focus) but I am experiencing it in a different environment.
Consider the snippet with a readonly text area. This brings bad a list of comments, where 2-3 fit on the screen before having to scroll for some more already loaded comments.
<div class="row">
<div class="col-xs-2 text-right font-sm-dark"
style="height:20px; line-height:20px; font-weight:bold;">
<label>Comment:</label>
</div>
<div class="col-xs-10 text-left font-sm">
<div class="col-xs-12 text-left font-sm">
<textarea style="text-align:left; width:100%; padding:0,0; line-height:normal; resize:none;"
rows="5"
ng-model="comment.Text"
readonly></textarea>
</div>
</div>
</div>
This works great when running the application on the browser (chrome, safari, etc), but once I build the application using PhoneGap and run it on the ipad device I get the following behavior:
The comments visible already show fine in the textareas. When I scroll down do read more comments, their textareas are empty BUT if I tap the textarea then the text appears.
After scrolling, the Comment boxes are empty until "tapped" in iOS.
That is it, there is no complicated CSS related to this markup, and no weird server loading issues. When this area loads it brings all the comments with it.
I'd like to point out that this is a large mobile app with much more sophisticated markup/functionality that works fine on the browser and translates perfectly to both Android and iOS mobile apps.
The first link I posted upthere leads me to think that there is some weird bug in ng-touch handling textarea focus on mobile clients.
Any ideas? I'd hate to dump textareas for text inputs, but I am almost at that point.