* in order for a value to be mapped.
*/
valueField: undefined,
+
+
/**
* @cfg {String} hiddenName If specified, a hidden form field with this name is dynamically generated to store the
* field's data value (defaults to the underlying DOM element's name)
addicon : false,
editicon: false,
+ // element that contains real text value.. (when hidden is used..)
+ shadowNameEl : undefined,
// private
onRender : function(ct, position){
// prevent input submission
//if (this.hiddenName == this.name) {
this.el.dom.removeAttribute('name');
- this.hiddenNameField = this.el.insertSibling({tag:'input', type:'hidden', name: this.name}, 'before', true);
-
+ this.shadowNameEl = this.el.insertSibling({tag:'input', type:'hidden', name: this.name}, 'before', true);
//}
if(this.el.dom.value.length > 0){
this.el.dom.value =
this.lastSelectionText === undefined ? '' : this.lastSelectionText;
+ this.shadowNameEl ? (this.shadowNameEl.dom.value = this.el.dom.value) : false;
this.applyEmptyText();
}
},