PDA

View Full Version : DisplayField in Combobox is flagged as private



twasink
17 Oct 2019, 5:23 PM
Running the Upgrade advisor over a small part of my codebase, I got this warning:


Usage of private config 'displayField' found for 'Ext.form.field.ComboBox'

This is for advising going from 6.5.2 to 7.0.0 (the Classic framework)

The relevant code looks a bit like:


{ xtype: 'combobox',
fieldLabel: 'Type',
store: Ext.create('Ext.data.Store', {
fields: ['name'],
data : [ /*...*/ ]
}),
queryMode: 'local',
displayField: 'name',
valueField: 'name'
}

The problem is that `displayField` is not private in either 6.5.2 (https://docs.sencha.com/extjs/6.5.2/classic/Ext.form.field.ComboBox.html#cfg-displayField) or 7.0.0 (https://docs.sencha.com/extjs/7.0.0/classic/Ext.form.field.ComboBox.html#cfg-displayField).

jratcliff
9 Nov 2019, 9:24 AM
This is due to a bug in the doxi output falsely reporting that the displayField is private. I'll see if I can find the engineer responsible for this bug to see when it will get fixed.

Isnogud
16 Dec 2019, 4:55 AM
This is due to a bug in the doxi output falsely reporting that the displayField is private. I'll see if I can find the engineer responsible for this bug to see when it will get fixed.

I'd get into trouble if I needed more than a month to find a certain colleague.
I'd also get into trouble if a new version came out 6 days ago and this bug was still not fixed nor reported.

Must be a relaxed working atmosphere..