Code:
var fPanel = Ext.create('Ext.form.FormPanel',
{
xtype: 'formpanel',
centered: true,
height: '100%',
width: formWidth,
scrollable: false,
items: [
{ xtype: 'spacer', height: 20 },
{
xtype: 'fieldset',
style: 'padding-left:5%;padding-right:5%',
items: [
{
xtype: 'emailfield',
label: '',
placeHolder: 'E-mail',
cls: 'startScreenFields',
value: '',
name: 'email'
},
{
xtype: 'passwordfield',
label: '',
placeHolder: 'Password',
cls: 'startScreenFields',
value: '',
name: 'pwd'
}
]
},
{ xtype: 'spacer', height: 20 },
{
xtype: 'container',
style: 'padding-left:5%;padding-right:5%',
layout: 'hbox',
items: [
{
xtype: 'button',
flex: 1,
cls:'blueButton',
width: '100%',
text: 'Sign In',
handler: function() {
this.up('signinpanel').processSignIn(this.up('formpanel'));
}
}]
},
{ xtype: 'spacer', height: 20 },
{
xtype: 'container',
layout: {
type: 'vbox',
align: 'center'
},
items: [
{
xtype: 'container',
padding: 4,
style: 'font-size:1.2em',
html: '<a>Forgot Password</a>',
listeners: {
element: 'element',
tap: function() {
this.up('signinpanel').forgotPassword();
}
}
}
]
}
]
});
The form panel works just fine if the "Sign In" button is clicked/tapped as expected. Any ideas as to what may be causing this issue? Interestingly, I have a searchBar object in my app. If I enter search text in the searchBar text field and hit "Enter", it works fine as expected and does not cause the app to reload with parameters showing up in the address bar.