-
27 Mar 2012 10:19 PM #1
Android: Submit form on action, double events?
Android: Submit form on action, double events?
Hello,
I have a problem with the submit on action on Android devices. Before it doesn't nothing but it was caused by a bug in the bubble events. After fixing that submit on action give me the follow events:
On Chrome and IOS I only have beforesubmit and the submit, what is going wrong here?Code:1. submit event 2. Ext.Msg.alert in listener because result is invalid, 3. beforesumit event 4. submit event 5. done and redirect in the listener because the result is valid.
Thanks
-
28 Mar 2012 7:53 AM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,659
- Vote Rating
- 14
Sounds like a bug, we'll look into it.
-
28 Mar 2012 11:11 AM #3
Fixed for the next release. Thanks!
Sencha Inc.
Robert Dougan - @rdougan
Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.
-
29 Mar 2012 7:00 AM #4
Thanks for quick response!
Is the next release available soon? I have to release an app specially for android but with this bug it is impossible.
Maybe there is a hotfix? If not I have to our customer the that the release date is delayed.
Thanks!
-
29 Mar 2012 7:48 AM #5Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,659
- Vote Rating
- 14
Try this override:
Code:Ext.define('Ext.formpanel.override', { override: 'Ext.form.Panel', onSubmit: function(e) { var me = this; if (e && !me.getStandardSubmit()) { e.stopEvent(); } this.submit(); }, onFieldAction: function(field) { if (this.getSubmitOnAction()) { field.blur(); this.submit(); } } });
-
30 Mar 2012 12:59 AM #6
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-2617
in
2.0.


Reply With Quote