Skip to content
Snippets Groups Projects
Commit 76fb9aaf authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Adapt form.field.ComboBoxMaster to the modified combo.select event.

parent 7b4158c7
No related branches found
No related tags found
2 merge requests!27Release 0.9.1,!268 extjs 6
......@@ -184,15 +184,15 @@ Ext.define('Dbui.form.field.ComboBoxMaster', {
* Reset the comBox when the selected row contains the emptyText value.
*
* @param {Dbui.form.field.ComboBoxUserReset} combo
* @param {Array} records
* @param {Ext.data.Model} record
* @param {Object} eOpts
*/
onSelect: function (combo, records) {
onSelect: function (combo, record) {
"use strict";
// the value is null when the emptyText is selected
if (!records[0].get(combo.valueField)) {
if (!record.get(combo.valueField)) {
combo.setValue("");
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment