PDA

View Full Version : [FIXED]Select field still editable when disabled



SimonFlack
27 Sep 2010, 12:14 AM
Sencha Touch version tested:

0.95

only default ext-all.css




Platform tested against:

iOS 3.x
iOS 4
Android 2.2


Description:

Select field selector/picker still actives/opens and other values can be selected when the field is disabled.


Test Case:



Ext.regModel('TimeType', {fields: ['timeType', 'timeTypeId']});

var timeTypesStore = new Ext.data.Store({
model: 'TimeType',
data : [
{timeType: 'Overtid 100 % - Alt utbetales', timeTypeId: '1'},
{timeType: 'Overtid 100 % - Tillegg utbetales', timeTypeId: '2'},
{timeType: 'Overtid 50 % - Tillegg utbetales', timeTypeId: '3'},
{timeType: 'Overtid 50 % - Alt utbetales', timeTypeId: '4'}
]
});

//Setup
Ext.setup({
icon: 'icon.png',
glossOnIcon: false,
onReady: function() {

var timeTypesField = new Ext.form.Select({
label: 'Timeart',
name: 'timeType',
displayField: 'timeType',
valueField: 'timeTypeId',
doneText: 'Ferdig',
store: timeTypesStore
});

var form = new Ext.form.FormPanel({
scroll: 'vertical',
items: [{
xtype: 'fieldset',
items: [timeTypesField]
}]
});

timeTypesField.disable(true);

var panel = new Ext.Panel({
fullscreen: true,
items: [form]
});
}
});

evant
27 Sep 2010, 1:55 AM
Thanks, fixed up in source control.