-
4 Oct 2012 3:41 AM #1
iOS 6.0 problem with keyboard in Ext.Msg.prompt
iOS 6.0 problem with keyboard in Ext.Msg.prompt
We discovered today that using iOS 6.0 on both an iPhone & an iPad tapping the keyboard on a Prompt field in a message box does nothing! No text is being typed into the prompt !!
Wonder if there's a way around this.
For now we've done a if (Ext.is.iOS) .. and use a different bit of handling to work around it.
BTW, we're using Phonegap 2.0.0 as well
-
9 Oct 2012 5:33 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,118
- Vote Rating
- 453
Using Sencha Touch 1.1.1 with my iPhone 4S running iOS 6 Ext.Msg.prompt is working for me. I did not wrap in Phonegap to see if this is a ST bug.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
9 Oct 2012 5:47 PM #3
mmm....
We _are_ using Phonegap (2.1.0)... and it was working fine prior to iOS 6.0
Both iPhones & iPads are affected.
... And we have discovered this afternoon that Chrome (Version 22.0.1229.92 m) also fails!
Safari 5.1.7 is OK though ! ?
We're in trouble Mitchell, because the pop-up data entry system in your grid works with this !Last edited by fairport; 10 Oct 2012 at 2:03 AM. Reason: New info
-
10 Oct 2012 6:50 PM #4
I can vouch that this problem exists on iOS 6 w/ Sencha Touch v1.1.1 (release) and further confirm that this is reproducible within chrome v23.0.1271.26.
https://github.com/ghuntley/sencha-t...tcase/index.js
Overview
- Popup dialog appears.
- User taps on input field.
- iOS keyboard appears.
- User inputs data using iOS keyboard.
- User inputted data is discard, input field is not updated to reflect input.
-
10 Oct 2012 8:51 PM #5
Thank you!
Any clues on an override or fix for it?
I have managed a workaround for everything except for the grid editor
Please Note: My workaround was not actually a fix for this problem... I simply used a different technique to achieve the same outcome... which actually is nowhere near as good as using the Msg.promptLast edited by fairport; 10 Oct 2012 at 9:14 PM. Reason: Clarification
-
11 Oct 2012 10:04 PM #6
Mitchell... For what it's worth...
By commenting out this little bit of code in sencha-touch-debug.js
... around line 26308
the problem goes away
PHP Code:for (attrName in attribs) {
if (attribs.hasOwnProperty(attrName)) {
attrib = attribs[attrName];
config.input.dom.setAttribute(
attrName.toLowerCase(),
/* /^auto/i.test(attrName) ? */ (assert.test(attrib+'') ? 'on' : 'off' ) //: attrib
);
}
}
-
19 Oct 2012 1:47 AM #7
Still no overrides?
-
27 Oct 2012 4:50 AM #8
-
27 Oct 2012 5:08 AM #9
Ext.Msg.prompt doesn't work in Chrome either.
-
27 Oct 2012 5:25 AM #10
Here is an override:
Code:var protoShow = Ext.MessageBox.prototype.show; Ext.override(Ext.MessageBox, { show : function(config) { protoShow.call(this, config); if (this.inputsEl && (config.multiLine || config.prompt)) { config.input.dom.setAttribute('maxLength', 100); } return this; } });


Reply With Quote