function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Simon ReparSimon Repar 

Visualforce & salesforce1 (IOS) major bug?

Hi,

did anyone notice some strange behaviour of input fields (input type=text, textarea,..) in Visualforce pages. Keyboard just locks up ...
To reproduce this bug do the following:
1. Create custom VF page with <input type="text" /> and make VF accessible by SF1
2. Focus this input by doing "one tap"
3. Type text(to here, everything works normally)
4. Tap again on input or tap somewhere outside of virtual keyboard (e.g. on blank space), or try to scroll page.
5. Try to type some more text (focus has to be still in input field).

I've research that problem and it seems it is related to input fields which are inside iframe (this is limited just to iOS) and because Visualforce pages in Salesforce1 are placed inside iframe, that is the reason why it breaks.

I've read that Apple fixed this bug in iOS 8, but because Salesforce 1 probably doesn't use latest phonegap/cordova engine it isn't fixed yet. 

Did anybody notice the same problem and how did you resolve it?  

Bug reference: http://webbugtrack.blogspot.com/2013/03/bug-345-keyboard-locks-up-in-ios-webkit.html (http://webbugtrack.blogspot.com/2013/03/bug-345-keyboard-locks-up-in-ios-webkit.html)
Ben NguyenBen Nguyen
I'm having this exact same issue.  Did you ever find a work around?
Simon ReparSimon Repar
Two known workarounds are:
1. to use window.open(url), which doesn't use iframe,
2. dismiss virtual keyboard or use prev/next button to jump on next field

None of the workarounds are really helpful, so Salesforce must address this bug immediatelly.