I've noted that when I navigate to some of my form panel views, they automatically gain focus in a text field. Other form views that I navigate to don't.
That happens despite all my views being based on almost identical code as below.
This happens on the iOS simulator and makes the keyboard pop up although no text field was tapped.
Any ideas how to prevent this erratic behavior?
Code:
Ext.define('MyApp.view.TextView', {
extend: 'Ext.navigation.View',
requires: ['Ext.form.Panel', 'Ext.form.FieldSet'],
xtype: 'text',
config: {
navigationBar: {
items: [
{
xtype: 'button',
iconMask: true,
text: 'Post Stuff',
align: 'right',
action: 'postStuffButton'
},
{
xtype: 'button',
iconMask: true,
text: 'Close',
align: 'left',
action: 'closeButton'
}
]
},
items: [
{
title: 'MyApp',
xtype: 'formpanel',
items: [
{
styleHtmlContent: true,
html : '',
},
{
xtype: 'fieldset',
items: [{
xtype: 'textfield',
name: 'message',
placeHolder: 'Your text message'
},{
xtype: 'textfield',
name: 'tags',
placeHolder: 'Up to 5 tags'
}]
},
{
xtype: 'button',
text: 'Post',
ui: 'confirm'
}
]
}
]
},
});